Cleaned tests file to correct all pyflakes and pep8 errors

The backslash happens not to be needed.