Cleaned tests file to correct all pyflakes and pep8 errors

Parens rather than backslashes would be great here.