cleanup of code style (pep8)
further code cleanup (flake8)
added running of flake8 to pre-commit hook
added flake8 and dependencies to requirements