def dict_lookup(dct, path):
    """
    Helper to recursively get dct['path']['to']['item'] from
    dct['path/to/item'].
    """
    if '/' in path:
        pre, post = path.split('/', maxsplit=1)
        return dict_lookup(dct[pre], post)
    else:
        return dct[path]