Executing python threads from C/C++ code