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