code: def dump(self, filename):
          
          flags = os.O_WRONLY|os.O_CREAT|os.O_NOFOLLOW|os.O_EXCL
          fd = os.open(filename, flags, 0600)
          os.write(fd, str(self))
          os.close(fd)
docs: Dumps statistics.
  
          @param filename: filename where stats will be dumped, filename is
                           created and must not exist prior to this call.
          @type filename: string