'if heart is beating'

def handle_pong(self, msg):

    if (msg[1] == str(self.lifetime)):
        self.responses.add(msg[0])
    else:
        print ('got    bad    heartbeat    (possibly    old?):    %s' % msg[1])
