結果 : how to wait for thread to finish python