def addproperty(property_str, property_dict, old_dict=None):
    return {k: (lambda k, v: old_dict[k] if old_dict != None else {
        property_str: v})(k, v) for k, v in list(property_dict.items())}
Словарь в словаре в Python 3