Multithreading in Python

Tried running through a set but it didn’t change anything. I’d have to see how pts is being generated to suggest anything else.