'Sleeps the calling thread with heartbeat.'

def Sleep(self, timeout):

    self.nanny_controller.Heartbeat()
    time.sleep((timeout - int(timeout)))
    for _ in xrange(int(timeout)):
        time.sleep(1)
        self.nanny_controller.Heartbeat()
