def __init__(self, log, prefix = ""): self.console = sys.__stdout__ self.log = log self.prefix = prefix