Markov Chain Python Code Example