Implement Bayesian Networks In Python Code