def __init__(self, loop, url, **kwargs):
        loop = loop
        self._lock = RLock()

        # initialize the heartbeart. It will PING the lookupd server to say
        # it's alive
        try:
            self.heartbeat_timeout = kwargs.pop('heartbeat')
        except __HOLE__:
            self.heartbeat_timeout = 15.0
        self._heartbeat = pyuv.Timer(loop)

        # define status
        self.active = False
        self.closed = False

        # dict to maintain list of sent messages to handle replies from the
        # lookupd server
        self.messages = dict()

        super(LookupClient, self).__init__(loop, url, **kwargs)
dataset/ETHPy150Open benoitc/gaffer/gaffer/gafferd/lookup.py/LookupClient.__init__