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

Update util.py