added python code to compute beta-binomial statistics for word counts