Bayesian Network Python Program