configure tox and flake8