Hidden Markov models in Python