Fix all flake8 warnings and add flake8 to tox.