The current Python implementation is proving hard to maintain, due to fragility of the in-memory object model, and I feel disinclined to look after things written in Python any more.

Rewrite it in Scheme, as a tool to parse .tangle files into a sqlite database representation, and then tools to turn that into the various HTML/dot versions.