Cleaned tests file to correct all pyflakes and pep8 errors

So sad that the space went away. I will create a new one to join the party.