Bayesian Classification Code In Python