<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reduce(self, agg=operator.add, acc=None):
 """ Submit all tasks and reduce the results """

        return self.submit_all().reduce(agg, acc)