def METHOD_NAME(action_name, function = None):
    global engine
    if action_name in engine.actions:
        raise AlreadyDefined("Bjam action %s is already defined" % action_name)
    engine.actions[action_name] = RCAction(action_name, function)