Update util.py
Merge pull request #9 from GuanjunXu/patch-6

Update util.py