Cleaned tests file to correct all pyflakes and pep8 errors

I'm not sure these '\'s are even necessary?