def decorator(function): function = PluginFunction(function) for name in names: function.add_alias(name) return function