test.py use the thread to commit