Implement Bayesian Networks In Python List