Tools for refactoring python code