You can also setup your dev environment to run pep8 as a pre-commit hook ->  https://wiki.mozilla.org/QA/Execution/Web_Testing/Automation/PEP8_Pre_Commit_Hook