Update utils.py

Fix the build for python 2.6