The easiest way is to use a KML file. Install the simplekml module and then run it through an array to create a KML file.
import simplekml kml = simplekml.Kml() for i, coord in enumerate(coords):
Now you can load this into mapnik as a data source and build it;
import mapnik
That should have done it. The docs for python + mapnik are a little weak, but you should be able to build it if you link;
source share