> Also if something should work with stdout, then it will also with with any file handle.

A file handle does not work. Even if I comment out the ```isinstance(lines, collections.Sequence)``` check, I get:
```
AttributeError: 'file' object has no attribute 'pop'
```