Fix test_util.py test case failure in py2.7.