add var.py by xuxiaocong@20141012