Make syndication tests run in Python3 as well.

The issue was that in Python3, 'xml.dom.minidom.NamedNodeMap' does not have 'has_key'
method. So, now, tests use 'getAttribute' instead.