Implement Bayesian Networks In Python For All Selected Lines