Enable Travis CI testing of read_shp and write_shp
Fix Python 3 compatibility of read_shp and write_shp