recovered bayes.py from time machine