added missing shapely.wkb import
fixed usage of viewport argument