flake8 and tox added for tests