def _avoid_at_exit_errors(self, stream):
    stream.write = (lambda s: None)
    stream.flush = (lambda : None)
def _avoid_at_exit_errors(self, stream):
    stream.write = (lambda s: None)
    stream.flush = (lambda : None)