Replace pep8 and pyflakes with flake8