from elementtree import ElementTree
  weblog = ElementTree.parse('weblog.xml').getroot()
  interesting = [entry for entry in weblog.findall('entry')
    if entry.find('host').text=='209.202.148.31'   and entry.find('statusCode').text=='200']
      for e in interesting:
       print "%s (%s)" % (e.findtext('resource'),e.findtext('byteCount'))