Bayesian Network In Python Code