def register(action, *args): idaapi.register_action( idaapi.action_desc_t( action.name, action.description, action(*args), action.hotkey ) )