Mostly have finished draft of mcmc.py, but doctests keep segfaulting.  Not sure why.