Updated: use an iterable instead of a fileobj