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

Update util.py