A simple implementation of nth order markov chains in python.