'Search for the tunnel community in the dispersy communities.'

def get_tunnel_community(self):

    for community in self.session.get_dispersy_instance().get_communities():
        if isinstance(community, TunnelCommunity):
            return community
    return None
