Cleaned tests file to correct all pyflakes and pep8 errors

plus a couple spaces to keep it in line with the numbers?