def send(self, value):
    if (self.queue is None):
        raise StopIteration
    self.queue.put((True, value))
def send(self, value):
    if (self.queue is None):
        raise StopIteration
    self.queue.put((True, value))