def gethandler(self):
        with self._handlerslock:
            if len(self._handlers) == 0:
                return None
            for handler in self._handlers:
                if handler.master:
                    return handler
            for handler in self._handlers:
                return handler
Get one of the connected handlers, preferrably the master.
dataset/ETHPy150Open coreemu/core/daemon/core/session.py/Session.gethandler