Variable Elimination Bayesian Network Python