Redirecting text from stdout to a wx.TextCtrl

In the example for "Redirecting text from stdout to a wx.TextCtrl" at
the url below,
http://wiki.wxpython.org/LongRunningTasks?highlight=(redirect)

what is the purpose of

        sys.__stdout__.write(string)

in the write() method of class SysOutListener ?

If the example is trying to redirect output to stdout, why is
sys.__stdout__.write() still being called?