extractStats.py cleaned up