code: def aslist(obj, sep=None, strip=True):
      
      if isinstance(obj, (basestring)):
          lst = obj.split(sep)
          if strip:
              lst = [v.strip() for v in lst]
          return lst
      elif isinstance(obj, (list, tuple)):
          return obj
      elif obj is None:
          return []
      else:
          return [obj]
docs: Returns given string separated by sep as list
  
      :param obj:
      :param sep:
      :param strip: