Re-adding stats.py after commit conflict.

Re-adding stats.py after commit conflict.