Add tox and switch to flake8