def addValueToEvaluatedDictionary(elementNode, evaluatedDictionary, key):
 value = getEvaluatedValueObliviously(elementNode, key)
 if (value == None):
  valueString = str(elementNode.attributes[key])
  print 'Warning, addValueToEvaluatedDictionary in evaluate can not get a value for:'
  print valueString
  evaluatedDictionary[(key + '__Warning__')] = ('Can not evaluate: ' + valueString.replace('"', ' ').replace("'", ' '))
 else:
  evaluatedDictionary[key] = value

def addValueToEvaluatedDictionary ( elementNode , evaluatedDictionary , key ) : value = getEvaluatedValueObliviously ( elementNode , key ) if ( value == None ) : valueString = str ( elementNode . attributes [ key ] ) print 'Warning, addValueToEvaluatedDictionary in evaluate can not get a value for:' print valueString evaluatedDictionary [ ( key + '__Warning__' ) ] = ( 'Can not evaluate: ' + valueString . replace ( '"' , ' ' ) . replace ( "'" , ' ' ) ) else : evaluatedDictionary [ key ] = value
get the evaluated dictionary .