Maximally-inefficient Markov string generator in Python.