Suggestion: access <code>self.xmltreefile</code> directly and use <code>findall</code> method to iterate through all channel objects like this:

    for ec in vmxml.xmltreefile.findall('devices/channel'):
        ...