code: def finalize(self):
          
          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))
docs: finalize for StatisticsConsumer