Markov chain library written in Python