Add stats.py from week 2.