Before the new AST module was added, I wrote <a href="http:&#x2F;&#x2F;dalkescientific.com&#x2F;Python&#x2F;python4ply-tutorial.html" rel="nofollow">http:&#x2F;&#x2F;dalkescientific.com&#x2F;Python&#x2F;python4ply-tutorial.html</a> , <a href="http:&#x2F;&#x2F;www.dalkescientific.com&#x2F;writings&#x2F;diary&#x2F;archive&#x2F;2006&#x2F;08&#x2F;30&#x2F;gardensnake_language.html" rel="nofollow">http:&#x2F;&#x2F;www.dalkescientific.com&#x2F;writings&#x2F;diary&#x2F;archive&#x2F;2006&#x2F;0...</a>, and <a href="http:&#x2F;&#x2F;www.dalkescientific.com&#x2F;writings&#x2F;diary&#x2F;archive&#x2F;2010&#x2F;02&#x2F;22&#x2F;instrumenting_the_ast.html" rel="nofollow">http:&#x2F;&#x2F;www.dalkescientific.com&#x2F;writings&#x2F;diary&#x2F;archive&#x2F;2010&#x2F;0...</a> . Those seem like something you&#x27;re looking for.