bayesian inference python example