TST: run pyflakes before pep8 on TravisCI.

Addresses @pv's comments on gh-3456 and gh-3512.
Merge pull request #3520 from rgommers/pyflakes-first

TST: run pyflakes before pep8 on TravisCI.