'Increment the counter and wake one waiter.'

def release(self):

    if (self._value >= self._initial_value):
        raise ValueError('Semaphore    released    too    many    times')
    super(BoundedSemaphore, self).release()
