Update aggregate.py