結果 : wait until function is done python