Here's an example of using XML namespaces with ElementTree:
>>> x = '''\
Popular Photography in the last 1 weekfoophotography/misc ...
'''
>>> node = ElementTree.fromstring(x)
>>> for elem in node.findall('item/{http://www.w3.org/TR/html4/}category'):
print elem.text
photography/misc