Python files for implementing a Markov model