結果 : find last occurrence of string in file python