def __init__(self, rows):
        # you can only call __iter__ once
        self._rows = iter(rows)
        try:
            self.headers = list(self._rows.next())
        except __HOLE__:
            self.headers = []
        self.fieldnames = self.get_fieldnames()
dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/spreadsheets/excel.py/IteratorJSONReader.__init__