Fix (almost) all the pep8 and pyflakes violations.
Add .pep8 config (copied from vumi).
Merge branch 'feature/issue-452-pep8-pyflakes' into develop
Merge branch 'develop' into develop-frontend
Fix a few pyflakes and pep8 violations. (@Hodgestar)