Shapefile read code (standard library)