Bayesian Network Program In Python For Prime