'write my output to sys.stdout/err as appropriate'

def show(self):

    sys.stdout.write(self.stdout)
    sys.stderr.write(self.stderr)
    sys.stdout.flush()
    sys.stderr.flush()
    for (data, metadata) in self._outputs:
        RichOutput(data, metadata).display()
