diff --git a/overpy/__init__.py b/overpy/__init__.py
index 377c28d..6aa887a 100644
--- a/overpy/__init__.py
+++ b/overpy/__init__.py
@@ -19,6 +19,16 @@ PY3 = sys.version_info[0] == 3
 XML_PARSER_DOM = 1
 XML_PARSER_SAX = 2
 
+# Try to convert some common attributes
+# http://wiki.openstreetmap.org/wiki/Elements#Common_attributes
+GLOBAL_ATTRIBUTE_MODIFIERS = {
+    "changeset": int,
+    "timestamp": lambda ts: datetime.strptime(ts, "%Y-%m-%dT%H:%M:%SZ"),
+    "uid": int,
+    "version": int,
+    "visible": lambda v: v.lower() == "true"
+}
+
 if PY2:
     from urllib2 import urlopen
     from urllib2 import HTTPError
@@ -608,17 +618,10 @@ class Element(object):
         """
 
         self._result = result
-        # Try to convert some common attributes
-        # http://wiki.openstreetmap.org/wiki/Elements#Common_attributes
-        self._attribute_modifiers = {
-            "changeset": int,
-            "timestamp": lambda ts: datetime.strptime(ts, "%Y-%m-%dT%H:%M:%SZ"),
-            "uid": int,
-            "version": int,
-            "visible": lambda v: v.lower() == "true"
-        }
         self.attributes = attributes
-        for n, m in self._attribute_modifiers.items():
+        # ToDo: Add option to modify attribute modifiers
+        attribute_modifiers = dict(GLOBAL_ATTRIBUTE_MODIFIERS.items())
+        for n, m in attribute_modifiers.items():
             if n in self.attributes:
                 self.attributes[n] = m(self.attributes[n])
         self.id = None

Can't pickle overpy.Result
<!--- Verify first that your issue/request has not already been reported -->

##### Issue type
 - Bug Report

##### OverPy version
<!--- Paste verbatim output from “python -c 'import overpy; print(overpy.__version__)'” or the hash of the git commit between quotes below. -->
```
0.4
```

##### OS
<!---
Add information about the os you are using OverPy on.
Pick one below and delete the rest:
-->
 - Windows 7 x64 HP

#### Python version
<!-- Pick at least one below and delete the rest -->
 - Python 3.5 x64

##### Summary
Neither pickle nor _pickle Python modules can't dump query result.

##### Steps to reproduce
```python
import overpy
import pickle

op = overpy.Overpass()
sample = op.query("""
    way(50.746,7.154,50.748,7.157) ["highway"];
    (._;>;);
    out body;
    """)

with open('sample.pcl', 'wb') as pcl:
    pickle.dump(sample, pcl)
```

<!--- You can also add links to gist.github.com. -->

##### Expected results
pcl-file full of usefull data =)

##### Actual results
Empty plc-file and exception:
```
     11 with open('sample.pcl', 'wb') as pcl:
---> 12     pickle.dump(sample, pcl)

AttributeError: Can't pickle local object 'Element.__init__.<locals>.<lambda>'
```

diff --git a/tests/test_result.py b/tests/test_result.py
index 784208b..d83c0d7 100644
--- a/tests/test_result.py
+++ b/tests/test_result.py
@@ -2,6 +2,7 @@ import pytest
 
 import overpy
 
+from tests.base_class import BaseTestWay
 from tests import read_file, new_server_thread, stop_server_thread, BaseHTTPRequestHandler
 
 
@@ -109,6 +110,23 @@ class TestNode(object):
         stop_server_thread(server)
 
 
+class TestPickle(BaseTestWay):
+    def test_way02(self):
+        """
+        Try to pickle and unpickle the result object
+        """
+        import pickle
+
+        api = overpy.Overpass()
+        result = api.parse_json(read_file("json/way-02.json"))
+        self._test_way02(result)
+        # do pickle and unpickle
+        result_string = pickle.dumps(result)
+        new_result = pickle.loads(result_string)
+        # test new result
+        self._test_way02(new_result)
+
+
 class TestRelation(object):
     def test_missing_unresolvable(self):
         url, server = new_server_thread(HandleResponseJSON02)

pip install -e .
parse_log_pytest
pytest
pytest
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
-e git+https://github.com/DinoTools/python-overpy.git@daa6a72748c3e682f4ffe65fe4b9bfbc788d10b1#egg=overpy
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: python-overpy
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
prefix: /opt/conda/envs/python-overpy

tests/test_result.py::TestPickle::test_way02
tests/test_result.py::TestResult::test_expand_error tests/test_result.py::TestResult::test_expand_01 tests/test_result.py::TestArea::test_missing_unresolvable tests/test_result.py::TestArea::test_missing_resolvable tests/test_result.py::TestNode::test_missing_unresolvable tests/test_result.py::TestNode::test_missing_resolvable tests/test_result.py::TestRelation::test_missing_unresolvable tests/test_result.py::TestRelation::test_missing_resolvable tests/test_result.py::TestWay::test_missing_unresolvable tests/test_result.py::TestWay::test_missing_resolvable
overpy/__init__.py
overpy/__init__.py