Can someone help me or modify this python script? ( unreal engine RMB navigation for blender )

i want to remove the context menu for all modes ( object mode , edit mode etc ) which is single right click

while navigation is still working which is hold rmb + AWSD

but i have no idea how to do it
i tried deleting some lines or made an attempt but i failed got error running the script

maybe someone can do it for me who got free time
thank you

Problem Solved : NVM after several attempts i delete this lines no more context menu

                            else:
                                try:
                                    bpy.ops.wm.call_menu(
                                        name="VIEW3D_MT_" + context.mode.lower() + "_context_menu"
                                        )
                                except:
                                    bpy.ops.wm.call_panel(
                                        name="VIEW3D_PT_" + context.mode.lower() + "_context_menu"
                                        )