Bug fix in thinkbayes.py