Hook not running/check if hook is running

 doc_events = {
	"*": {
		"on_change": [
			"lms.lms.doctype.lms_badge.lms_badge.process_badges",
		]
	},
	"LMS Quiz Submission": { "after_insert": "lms.api.process_quiz_submission" },
	"Discussion Reply": {"after_insert": "lms.lms.utils.handle_notifications"},
	"Notification Log": {"on_change": "lms.lms.utils.publish_notifications"},
}

i have added the lms submission hook

the api.py is in the same directory as hooks.py

but i dont think it is executing automatically

import frappe

def process_quiz_submission(doc, method):
    print("success")
    print(doc.result)
    frappe.logger().info("hi")
    for row in doc.result:
        row.marks = 2

    doc.save(ignore_permissions=True)

this is the temporary script i wrote to check if it is working i have read the logs but i cant tell if its running or not