class NewOut(type(sys.stdout)):

    def write(self, *args, **kwargs):
        super(NewOut, self).write('The new one was called! ')
super(NewOut, self).write(*args, **kwargs)
sys.stdout = NewOut()
Set a Read-Only Attribute in Python?