Changed to spawn only a single thread, because for at least my small test sizes it's actually faster thanks to how python handles threads