Implement Bayesian Network In Python