Fix error in pi_stats.py.