def push(data, key, element):
    """
    Assist in items to a dictionary of lists
    """
    if (not element) or (not key):
        return

    if key in data:
        data[key].append(element)
    else:
        data[key] = [element]
dataset/ETHPy150Open openshift/openshift-ansible/inventory/openstack/hosts/nova.py/push/original