Fix some pep8 on rest/tests.py