runner script for python multithreading