def __init__(self, action_function): idaapi.action_handler_t.__init__(self) self.action_function = action_function