Python Determine If Substring In String