astor is designed to allow easy manipulation of Python source via the AST.
https://github.com/berkerpeksag/astor
latest