[python] Find index of last occurrence of a substring in a string