def warning(message, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"warning: {}".format(message), **kwargs)
def unlock(self, key):
    if self._tokens[key] > 0:
      self._tokens[key] -= 1