code: def construct_command(self, command, keys=None, opts=None):
          
  
          cstr = [command]
  
          # Add the keys and values, escape as needed
          if keys:
              for key in keys:
                  if isinstance(keys[key], list):
                      ncstr = []
                      for nest in keys[key]:
                          ncstr.append("%s=%s" % (key, self._escape_str(nest)))
                      cstr.append("|".join(ncstr))
                  else:
                      cstr.append("%s=%s" % (key, self._escape_str(keys[key])))
  
          # Add in options
          if opts:
              for opt in opts:
                  cstr.append("-%s" % opt)
  
          return " ".join(cstr)
docs: Constructs a TS3 formatted command string
          Keys can have a single nested list to construct a nested parameter
          @param command: Command list
          @type command: string
          @param keys: Key/Value pairs
          @type keys: dict
          @param opts: Options
          @type opts: list