from __future__ import print_function
import re
from xml.dom import minidom
xmldoc = minidom.parseString(data.strip())
nodes = xmldoc.getElementsByTagName('cpe')
print(nodes[0].firstChild.data)
nodes = xmldoc.getElementsByTagName('address')
print (nodes[0].attributes['addr'].value)
cpe:/h:hp:p2000_g3
45.33.49.119