Apply pep8 and pyflakes

pep8 is for style.
pyflakes finds programming errors.
Also report after successful Travis jobs.