Ignore virtual env (venv) directory.
Add flake8 configuration via tox.ini
Fix syntax error

and comply with flake8.