Add core/hm.py
Merge branch 'master' of https://github.com/eudoxia0/hm