Update utils.py

Python 3 removed the distinction between int and long, does not compile on Py3
Merge pull request #4 from fluffypony/patch-1

Update utils.py