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

Update util.py