self.stdout is an instance of OutputWrapper class created with an argument: value under the 'stdout' key of the options dictionary,
self . stdout = OutputWrapper ( options . get ( 'stdout' , sys . stdout ) )