code: def process_list_arg(arg):
      
      if isinstance(arg, list):
          return arg
      elif isinstance(arg, basestring):
          args = []
          for part in arg.split(","):
              args.append(part.strip())
          return args
docs: Parse a string into a list separated by commas with whitespace stripped