code: def _string_from_cmd_list(cmd_list):
      
      cl = []
      for arg in map(str, cmd_list):
          if ' ' in arg or '\t' in arg:
              arg = '"' + arg + '"'
          cl.append(arg)
      return ' '.join(cl)
docs: Takes a list of command line arguments and returns a pretty
      representation for printing.