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

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 .