Move script_run_callbacks to Lua