code: def last_message(self, timeout=5):
          
          if self._thread is not None:
              self._thread.join(timeout=timeout)
          return self._task.last_message
docs: Wait a specified amount of time and return
          the last message from the task
  
          :rtype: str