def localize_attributes(attribs, translations):
 for (name, atrans) in translations.items():
  attrib = attribs[name]
  localize_common(attrib, atrans)

def localize_attributes ( attribs , translations ) : for ( name , atrans ) in translations . items ( ) : attrib = attribs [ name ] localize_common ( attrib , atrans )
localize list of attributes .