Massive delay using Python interface

We want to present acoustic stimuli using the Steinberg UR22mkII. An interface in Python, we rely on the sounddevice module (https://github.com/spatialaudio/python-sounddevice). Unfortunately, so far, we did not manage to present our sounds in WASAPI exclusive mode. We are facing a massive delay. A detailed description of the problem is posted on Github:

https://github.com/psychopy/psychopy/issues/2065
https://discourse.psychopy.org/t/massive-sound-lag-using-psychopy-windows-wasapi-for-external-sound-card/5530/2

Any help is highly appreciated.