Returns obj. for badgerfish and val for hbf. Appropriate for nested literals

def find_nested_meta_first(d, prop_name, version):
    """Returns obj. for badgerfish and val for hbf. Appropriate for nested literals"""
    if _is_badgerfish_version(version):
        return find_nested_meta_first_bf(d, prop_name)
    p = '^' + prop_name
    return d.get(p)