idfreader works with file handles and StringIO