Updated documentation in utils.py

Basically a duplicate of pull request #96 without the issues.