PEP8 cleanups

Added a pep8 subset check during travis checks.  Only checks that should always be correct are in the subset, almost the same subset as from Toolkit.

Then fixed the issues that where broken.  The migrations where all missing newlines at end of file, I'm not sure why South doesn't do the right thing with those.

I held off doing this till most of the backports had been done.