def dicts_get(s, *ds):
    """This helper functions allows for registering functions within a class that are no longer in scope at the time of registration

    `Source of this function <https://stackoverflow.com/questions/53678884/setting-imported-functions-as-members-in-a-static-dictionary>`_

    """
    for d in ds:
        if s in d:
            return d[s]
    raise NameError('name %s is not defined' % s)
