The method getAddresses was removing addresses by mistake. Several instances of using self.attrib instead of self.xml.attrib.
XEP-0033 can be useful for interacting with XMPP<->Email gateways.