code: def first(dmap_data, *path):
      
      if not (path and isinstance(dmap_data, list)):
          return dmap_data
  
      for key in dmap_data:
          if path[0] in key:
              return first(key[path[0]], *path[1:])
  
      return None
docs: Look up a value given a path in some parsed DMAP data.