Update bayes.py