Adding flatten() and is_iterable()