Argument Of Type Function Is Not Iterable