Check If Substring Exists In String Python Definition