TST: run pyflakes before pep8 on TravisCI.

Addresses @pv's comments on gh-3456 and gh-3512.