Added stats.py

Added stats.py