Fix the python part threading changes.

Just getting it to compile