tests.py pep8 compliance