Add flake8 to dev-requirements
Fix flake8
Fix flake8 and missing sys module
Add flake8 testenv to tox

flake8 testenv will test flake8 on source code