def format_payload(enc, **kwargs):
    payload = {'enc': enc}
    load = {}
    for key in kwargs:
        load[key] = kwargs[key]
    payload['load'] = load
    return package(payload)
Pass in the required arguments for a payload, the enc type and the cmd,
dataset/ETHPy150Open saltstack/salt/salt/payload.py/format_payload