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

Also fix any current issues.