Implement Bayesian Networks In Python An Array