A simple gibbs sampler written in python