This seems to be a known issue in the repository 31.
The repository also doesn’t seem to be maintained anymore.
You could try to get a stack trace via:
$ gdb --args python my_script.py
...
Reading symbols from python...done.
(gdb) run
...
(gdb) backtrace
...

and we could try to debug.