結果 : python detect when thread is finished