Check QA: add tasks to run flake8 to tox/travis

Also fix any current issues.
Merge pull request #153 from blueyed/checkqa

Check QA: add flake8 to tox/travis