It seems loadExt is sensitive to a debug target's presence.
Try to change the call's order:
Try to change the call's order:
loadDump(bugcheckData['dump'])
extHandle = loadExt(r"C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\winxp\kdexts.dll")
Or use a windbg metacommand '.load'. It does not check If there is a debug target.pykd.dbgCommand(".load \"C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\winxp\kdexts.dll\")