flake8 and tests working