Add markoff.py and testmarkoff.py