updated mcmc.py