Update utils.py

The following syntax:

except ImportError, e:
was deprecated in Python 2.7 and removed in Python 3.x. Nowadays, you use the as keyword