How to handle GIL problems in python: https://realpython.com/python-gil/ Check how to use pdb module in command line: https://fedoramagazine.org/getting-started-python-debugger/