Substring Index Python Find Element