def get_candidate(self, raw_result, extra={}):
        """
        Get the Candidate model for a RawResult

        Keyword arguments:

        * extra - Dictionary of extra query parameters that will
                  be used to select the candidate. 
        """
        key = (raw_result.election_id, raw_result.contest_slug,
            raw_result.candidate_slug)
        try:
            return self._candidate_cache[key]
        except __HOLE__:
            fields = self.get_candidate_fields(raw_result)
            fields.update(extra)
            del fields['source']
            try:
                candidate = Candidate.objects.get(**fields)
            except Candidate.DoesNotExist:
                print fields 
                raise
            self._candidate_cache[key] = candidate 
            return candidate
dataset/ETHPy150Open openelections/openelections-core/openelex/us/wa/transform/__init__.py/CreateResultsTransform.get_candidate