put stats.py and test_stats.py back in repo as finished examples.