added file hg.py