Refactoring code and missing imports Sometimes when refactoring code, you are copy and pasting functions from one file to another. It's very easy to forget to include the right import statement to import some module, class or function Use pylint to find errors You can use pylint (ubuntu install link) to check your code. It will scan over all your code and report errors. However on a default run it