This fails under python 3.2.3: ```AttributeError: 'NamedNodeMap' object has no attribute 'has_key'```