Make test_utils.py run on Python 3