code: def get_command_str(args):
      
      single_quote = "'"
      double_quote = '"'
      for i, value in enumerate(args):
          if " " in value and double_quote not in value:
              args[i] = '"%s"' % value
          elif " " in value and single_quote not in value:
              args[i] = "'%s'" % value
      return " ".join(args)
docs: Get terminal command string from list of command and arguments
  
      Parameters
      ----------
      args : list
          A command and arguments list (unicode list)
  
      Returns
      -------
      str
          A string indicate terminal command