def insert_element_to_dict_of_dicts(dict_of_dicts: Dict[str, Dict[str, str]], first_key: str, second_key: str, contents):
    """
    Utility method

    :param dict_of_dicts:
    :param first_key:
    :param second_key:
    :param contents:
    :return:
    """

    if first_key not in dict_of_dicts.keys():
        dict_of_dicts[first_key] = {second_key: contents}
    else:
        if second_key not in dict_of_dicts[first_key].keys():
            dict_of_dicts[first_key][second_key] = contents
        else:
            warn('Overriding contents for ' + first_key + '/' + second_key)
            dict_of_dicts[first_key][second_key] = contents
Utility method

    :param dict_of_dicts:
    :param first_key:
    :param second_key:
    :param contents:
    :return: