Add pyflakes to test-requires.

This ensures that pyflakes is installed in the venv and has the latest version.
Fixes a bug where old versions of pyflakes could not handle python 2.7