Update average.py