Update BayesNetwork.py