Pmf.py downloaded from greenteapress.com/thinkstats/Pmg.py