You should run [pyflakes](https://pypi.python.org/pypi/pyflakes) or [flake8](https://pypi.python.org/pypi/flake8) on your code and fix all errors and warnings.