I guess you need to call self._dispersy.get_communities() and then check with isinstance to get the discoverycommunity.