結果 : python stop function if it takes too long