added HMM.py