makevalid PostGIS ST_MakeValid equivalent using Shapely Installation python setup.py install Run Tests python tests/test_validity.py