code: def notify_all(self):
          
          self.condition.acquire()
          # python 3.x
          try:
              self.condition.notify_all()
          except:
              self.condition.notifyAll()
          self.condition.release()
docs: Notifies all waiting threads