<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def finalize(self):
 """finalize for StatisticsConsumer"""

        super(StatisticsConsumer, self).finalize()
        # run statistics on timewave slice w at grid point g
        # self.result = [(g, self.statistics(w)) for g, w in zip(self.grid, self.result)]
        # self.result = zip(self.grid, (self.statistics(w) for w in self.result))
        self.result = zip(self.grid, map(self.statistics, self.result))