'Wait for the specified timeout.'

def Wait(self, timeout):

    time.sleep((timeout - int(timeout)))
    for _ in xrange(int(timeout)):
        time.sleep(1)
        if self.heart_beat_cb:
            self.heart_beat_cb()
