def manage_dictionary(dictionary, key, init, callback = None):
    """

    :param dictionary:
    :param key:
    :param init:
    :param callback:

    :return:
    """
    if not str(key) in dictionary:
        dictionary[str(key)] = init
        manage_dictionary(dictionary, key, init)
        if callback:
            callback(dictionary[key])
    return dictionary
def manage_dictionary ( dictionary , key , init , callback = None ) : if not str ( key ) in dictionary : dictionary [ str ( key ) ] = init manage_dictionary ( dictionary , key , init ) if callback : callback ( dictionary [ key ] ) return dictionary
:param dictionary:
    :param key:
    :param init:
    :param callback:

    :return: