add thread_test.py.