def _build_tag_param_list(params, tags):
    keys = sorted(tags.keys())
    i = 1
    for key in keys:
        value = tags[key]
        params['Tags.member.{0}.Key'.format(i)] = key
        if value is not None:
            params['Tags.member.{0}.Value'.format(i)] = value
        i += 1
helper function to build a tag parameter list to send
dataset/ETHPy150Open saltstack/salt/salt/modules/boto_elb.py/_build_tag_param_list