Implement Bayesian Networks In Python Program