Typo in calc.py, averages were being saved as avg instead of average, which it was previously.