compat fix in write_shp with new pandas