Using PythonKit in multi-threaded application

I am trying to call two different python function using PythonKit from macOs command line application's two different (parallel) threads. whenever both of them starts to run in parallel the later one gets an error of EXC_BAD_ACCESS from internal code pythonkit :

I'm having similar problems. Did you find a workaround?

Python has a global interpreter lock, so it shouldn't be possible to use it from multiple threads. PythonKit does not have built-in thread safety because it assumes you will only use it from a single-threaded context.

Perhaps use a synchronous Swift dispatch queue to coordinate operations onto one thread.

Yup, this is just what I've been working on setting up, thanks!