test_utils.py: Improve pep8 and pylint compliance