Downloaded markov.py from http://www.greenteapress.com/thinkpython/code/markov.py .