OSM Python API mirrored from http://svn.openstreetmap.org/applications/utils/python_lib/OsmApi