initial commit of hmm.py
working on second part