from lxml import etree
ns = etree.FunctionNamespace('http://www.aws.com/aws')
ns.prefix = 'aws'
doc = etree.parse('weather.xml')
print(doc.xpath('//aws:weather/aws:ob/aws:temp')[0].text)
How to parse XML in Python and LXML?