Add pyflakes and fix linting errors.
Add flake8 checker to Travis
Fix typo in requirements.txt
This should break the flakes8 check on Travis