def get_elem(dictionary, keys):
    """
    Given a dictionary and a tuple of keys, retrieve the element found by
    following the tuple of keys.

    @param dictionary   Dictionary to retrieve an element from
    @param keys         Tuple of keys to follow to find a element
    @return the elemetn found in the dictionary by following the tuple of keys
    """

    curr_elem = dictionary

    for key in keys:
        curr_elem = curr_elem[key]

    return curr_elem