python implementation of Inference in Hidden Markov Models (HMM)