what does str.rindex return in python