Replaced pep8 and pyflakes by flake8