Adding custom python-based operations for aggregation task.