def setAttributesByArguments(argumentNames, arguments, elementNode):
 for (argumentIndex, argument) in enumerate(arguments):
  elementNode.attributes[argumentNames[argumentIndex]] = argument

def setAttributesByArguments ( argumentNames , arguments , elementNode ) : for ( argumentIndex , argument ) in enumerate ( arguments ) : elementNode . attributes [ argumentNames [ argumentIndex ] ] = argument
set the attribute dictionary to the arguments .