def _parse_winner(self, raw_result):
        if raw_result.winner == 'Y':
            # Winner in post-2002 contest
            return True
        elif raw_result.winner == 1:
            # Winner in 2002 contest
            return True
        else:
            return False
Converts raw winner value into boolean
dataset/ETHPy150Open openelections/openelections-core/openelex/us/wa/transform/__init__.py/CreateResultsTransform._parse_winner