Reverted changes in stat.py