Use Flake8 in flymake mode instead of just PyFlakes.