Add flake8 check and fix typo in .travis.yaml