def get_fieldnames(self):
        obj = {}
        for field, value in zip(self.headers, [''] * len(self.headers)):
            if not isinstance(field, basestring):
                raise HeaderValueError(u'Field %s is not a string.' % field)
            self.set_field_value(obj, field, value)
        return obj.keys()
dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/spreadsheets/excel.py/IteratorJSONReader.get_fieldnames/original