PY: MCMC loop fully modularized