Cleaned tests file to correct all pyflakes and pep8 errors

I don't think this newline is strictly necessary. (Note: none of the comments I'm about to make are going to prevent me from making the merge, this is just helping my active reading ;) )