Cleaned tests file to correct all pyflakes and pep8 errors

For some reason I want this closing paren to have its own line.