Hi,
My name is Bogdan, a python developer from Romania.
I have a few ideas regarding this task, but it depends on how the code is structured, what it does, how it works.
We could start by looking into how you are doing calculations (if you are familiar with big O notation -- time complexity) and if everything is okay, then we could go into threading.
There are a lot of things to discuss but I would need to see the code.
All the best,
Bogdan