unsupervised machine learning hidden markov models in python coupon