結果 : python wait until function finished