def _push(my_dict, key, element):

    if key in my_dict:
        my_dict[key].append(element)
    else:
        my_dict[key] = [element]
Push element to the my_dict[key] list.
dataset/ETHPy150Open openshift/openshift-ansible/inventory/libvirt/hosts/libvirt_generic.py/_push