Make write take iterable
Merge pull request #10 from skearnes/fix_writer

Make write take iterable