def write(self, data, auto_flush=True):
self.temporary_file.write(data)<EOL>if auto_flush:<EOL><INDENT>self.flush()<EOL><DEDENT>
<Purpose>
  Writes a data string to the file.

<Arguments>
  data:
    A string containing some data.

  auto_flush:
    Boolean argument, if set to 'True', all data will be flushed from
    internal buffer.

<Exceptions>
  None.

<Return>
  None.