def get_obj_elem_from_keys(obj, keys):
    """
    Returns values stored in `obj` by using a list of keys for indexing.

    Parameters
    ----------
    obj : object
        Python object offering indexing, e.g., a dictionary.
    keys : list of str
        List of keys for indexing.

    Returns
    -------
    object
        Values of the indexed object.
    """

    if len(keys) > 1:
        return get_obj_elem_from_keys(obj[keys[0]], keys[1:])
    else:
        return obj[keys[0]]