code: def dump(self):
          
  
          out = []
  
          out.append(self.filetype)
          out.append("Format: {}".format(self.version))
          out.append("Type: ASCII")
          out.append("")
  
          for cmd in self.commands:
              out.append(self.encode(cmd))
  
          return "\n".join(out) + "\n"
docs: Dump all commands in this object to a string.
  
          Returns:
              str: An encoded list of commands separated by
                  \n characters suitable for saving to a file.