To use AST Unparser in a project:
import astunparse
Then use the unparse() function to unparse an AST tree.
unparse()