Add flake8 env to tox.
Flake8 cleanup of main codebase.