def buildTagMap(default, *args):
 built = {}
 for portion in args:
  if hasattr(portion, 'items'):
   for (k, v) in portion.items():
    built[k] = v
  elif (isList(portion) and (not isString(portion))):
   for k in portion:
    built[k] = default
  else:
   built[portion] = default
 return built

def buildTagMap ( default , * args ) : built = { } for portion in args : if hasattr ( portion , 'items' ) : for ( k , v ) in portion . items ( ) : built [ k ] = v elif ( isList ( portion ) and ( not isString ( portion ) ) ) : for k in portion : built [ k ] = default else : built [ portion ] = default return built
turns a list of maps .