title: How to convert a GEOS MultiLineString to Polygon?
body: <p>I am developing a GeoDjango application where users can upload map files and do some basic mapping operations like querying features inside polygons. </p>
  
  <p>I recognized that users happen to upload "MultiLineString"s instead of "Polygon"s sometimes. This causes the queries expecting closed geometries to fail. </p>
  
  <p>What is the best way to convert a MultiLineString object to a Polygon in Python?</p>