code: def flush(self):
          
          self._write_all(self._wbuffer.getvalue())
          self._wbuffer = StringIO()
          return
docs: Write out any data in the write buffer.  This may do nothing if write
          buffering is not turned on.