結果 : python wait for thread to finish before continuing