How To Check If Object Is Iterable In Python Definition