Incompatibility with Python Curses Library

Maybe it’s impossible to use asciinema to record a program that uses the Python Curses library, I suspect it is simply incompatible. Has anyone else tried this? I didn’t find any other topics about using Curses here.

What terminal display libraries are compatible with asciinema?

Here is a link to the recording I made where you can see the issues:
https://asciinema.org/a/SGjjrCtjx3mNTEm5tQWxmR0xR