You could use gdb via:
gdb --args python script.py args
...
run
...
bt

to isolate the issue further. A minimal code snippet would be indeed helpful, but I also understand that it can be a huge amount of work to create one.