update bayes.py