Fix failing Py3 test