add flake8 env to tox, cleanup to get it passing