title: Python code generator
body: <p>I want to be able to perform code generation of python given an AST description.</p>
  
  <p>I've done static analysis of C and built AST visitors in python, so I feel relatively comfortable manipulating a syntax tree, but I've never attempted code generation before and am trying to determine the best practice for generating python code.</p>
  
  <p>Specifically, I'd love pointers on how automatic code generation is typically done, or any pointers to libraries targetting python which could make this task simpler.</p>
  
  <p>My end goal is to attempt something similar to <a href="http://embed.cs.utah.edu/csmith/">csmith</a> or a tool to make python code compliant with <a href="http://www.python.org/dev/peps/pep-0008/">PEP8</a>.</p>