Python wrapper and AST filters for Pandoc