code: def simplify_list(maybe_list):
      
      if isinstance(maybe_list, MutableSequence):
          is_list = aslist(maybe_list)
          if len(is_list) == 1:
              return is_list[0]
      return maybe_list
docs: Turn a length one list loaded by cwltool into a scalar.
      Anything else is passed as-is, by reference.