https://fimuko.github.io/posts/python-postgis-formatting-data-to-postgis/
Parsing geometries for Post GIS with Python