Python If String Not In String Function