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

add watcher func