implementing ogr2ogr in python