markov lib in python for learning purposes.