stastics.py updated