def get_fields(self):
        """
        Returns a list of all fields encountered when building the flattened
        data with a call to get_list()

        This list is appropriate for writing a header row in a csv file
        using csv.DictWriter.
        """
        try:
            return list(self._fields)
        except __HOLE__:
            return self._output_fields
dataset/ETHPy150Open openelections/openelections-core/openelex/base/bake.py/Roller.get_fields