Bayesian Network Program In Python For Palindrome