Fix PEP8

`make lint` detected some existing PEP8 issues.  This PR fixes the issues, and adds `flake8` to TravisCI.