def lookup(dictionary, key, *keys):
    """
    Helper to lookup a key or nested keys within a dictionary
    """
    if keys:
        return lookup(dictionary.get(key, {}), *keys)
    return dictionary.get(key)