def __init__(self, name, filename=None):
        self.name = name
        super(NamedRequirements, self).__init__(filename=filename)
def unlock(self, key):
    if self._tokens[key] > 0:
      self._tokens[key] -= 1