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

Update util.py