Added a new Scopes object to NodeTraverser that keeps better track of variables and function parameters in scope. Made some other things easier.
Also refactored rename_variables to use generators. Not sure if it was useful in the end or not! But now rename_variables doesn't assume that it is working on a FunctionDef. New function rename_function_body_variables has the old functionality.
Added a new Scopes object to NodeTraverser that keeps better track of variables and function parameters in scope. Made some other things easier.
Also refactored rename_variables to use generators. Not sure if it was useful in the end or not! But now rename_variables doesn't assume that it is working on a FunctionDef. New function rename_function_body_variables has the old functionality.