Added markov.py, the beef of the code.