Dynamic Bayesian Network In Python List