Python Wildcard If Statement