Python Check If String Contains Substring With Wildcard