def __exit__(self, type, value, traceback):
    setattr(sys, ('std%s' % self.std), getattr(sys, ('__std%s__' % self.std)))
def __exit__(self, type, value, traceback):
    setattr(sys, ('std%s' % self.std), getattr(sys, ('__std%s__' % self.std)))