In python3.8, a change was made to the DLL search path, which requires using os.add_dll_directory to add a non-default path.