Resolved: splunk_csv.DictReader.fieldnames now correctly sets self._fieldnames = [], if a StopIteration exception is raised by self.reader.next()