def finalize(self):
        """
        finalize simulation for consumer
        """
        super(StringWriterConsumer, self).finalize()
        self.result = self.decoder(self.result)
def finalize ( self ) : super ( StringWriterConsumer , self ) . finalize ( ) self . result = self . decoder ( self . result )
finalize simulation for consumer