結果 : python wait for another function to finish