Cairo bindings are available in python. The code doesnt draw entire sides : it just draws the straight sections of all sides . To be used for all testing purposes .
The code can be viewed / downloaded from here
For most part of it is easy to read . Any suggestions welcome .
Sample output :