add aggregate.py; halfway of coding