def _build_contest_kwargs(self, row):

        try:
            jurisdiction = row['County'].strip()
        except KeyError:
            name_list = self.source.split('__')[-2:]
            jurisdiction = '{0} {1}'.format(
                name_list[0],
                name_list[1].split('.')[0])

        return {
            'office': row['Race'].strip(),
            'jurisdiction': jurisdiction
        }
Generic find function using a defined index
dataset/ETHPy150Open openelections/openelections-core/openelex/us/wa/load.py/WALoaderPost2007._build_contest_kwargs--crossover with--dataset/ETHPy150Open ooici/pyon/pyon/datastore/postgresql/datastore.py/PostgresPyonDataStore.find_by_view