Bayesian Network Example Python