Update util.py
Update util.py
Bugfix
Merge pull request #35 from ly29/master

Bugfixes