Replace pyflakes with flake8

Had the dependencies the wrong way around.