first commit hmm.py