flake8

the modular source code checker: pep8 pyflakes and co

Here are some articles that you may find helpful