Using Shapely to handle geometries