Cleaned tests file to correct all pyflakes and pep8 errors

Seems to be stack frame upon stack frame of parentheticals pushed!