`w = shapefile.Writer(shp="/path/tofile.shp")` as per the documentation >>> w = shapefile.Writer(dbf='shapefiles/test/onlydbf.dbf') >>> w.field('field1', 'C') throws `ShapefileException: No file-like object available.` when trying to write a polygon `w.poly(geometry)`