refactor.py refactor.py is a script to help Python programmers automatically refactor modules, specifically aimed at fixing problems that tend to occur in the real-world.