Clean up test requirements

Commit be13980 migrated from pep8 and tools/unused_imports.sh to
flake8, so remove pep8 and pyflakes (used by unused_imports.sh)
requirements and unused_imports.sh and replace with flake8
requirement.