create hmm model for data in python.