Just speculating, but would it help to use locks on Python-side so that only one thread at a time calls Julia?