Almost get shapefile download working. Points and polygons. Bug in pyshp lib for polylines I think