結果 : python wait for function to finish