Cleaned tests in profile of all pyflakes and most pep8 errors