Getting an int object is not iterable in the AverageShape.py file