ipdb> import ast
ipdb> [t.unparse() if isinstance(t, ast.AST) else t for t in tree]
*** NameError: name 'ast' is not defined
I was trying this code, but for some reason it clams that ast is not defined, even after importing. How to circumvent this?