Add a couple more input handlers.

Necessary for subset_biom.py conversion. Also fix file writer handler to work better with generators (also necessary for this conversion).