test runner for python multithreading