code: def wait(self, timeout):
          
          self.timeout = timeout
          self.start()
          self.join(timeout=5)
docs: Starts the Timer for timeout seconds, then gives 5 second grace period to join the thread.
          :param timeout: Duration for timer.
          :return: Nothing