Cleaned tests file to correct all pyflakes and pep8 errors

Aw, sad to lose the English standard space before paren