str.rfind in python