Python Check If Object Is Not Iterable Cannot