Bayesian Network Implementation Python Tutor