Substring Index Python Find