code: def set(self):
          
          with self.__cond:
              self.__flag = True
              self.__cond.notify_all()
docs: Set the internal flag to true.
  
          All threads waiting for the flag to become true are awakened. Threads
          that call wait() once the flag is true will not block at all.