Spawn a thread inside a sub-process in Python Spawn a thread inside a sub-process in Python multithreading multithreading