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

Update util.py