Locate Character In String Python Definition