add a pass over the AST's which (tries to) add resolved names based on the knowledge from imports and local declarations it could be there are AST annotation libraries in Python which already do this. If so, reuse, this.
add a pass over the AST's which (tries to) add resolved names based on the knowledge from imports and local declarations
it could be there are AST annotation libraries in Python which already do this. If so, reuse, this.