Completed flake8 cleanup.

I've decided to go with longer lines in the tests. Also fixed a couple
errors with the previous cleanup.
Added flake8 to tox and travis