def JoinLists(**args):
 out = {}
 for (key, val) in args.items():
  if val:
   out[key] = StrJoin(JOIN_DELIMS[key], val)
  else:
   out[key] = ''
 return out

def JoinLists ( ** args ) : out = { } for ( key , val ) in args . items ( ) : if val : out [ key ] = StrJoin ( JOIN_DELIMS [ key ] , val ) else : out [ key ] = '' return out
take a dictionary of {long_name:values} .