add util.py

Signed-off-by: Eli <taget@163.com>