def WhichParty(s):
    for abbreviation, long_name in party_long_names.items():
        if long_name in s:
            return abbreviation
    return None
JCR: Each comma, semicolon or colon should be followed by whitespace.
dataset/ETHPy150Open j3camero/canada-election-forecast/riding_forecast.py/WhichParty--crossover with--dataset/ETHPy150Open sahana/eden/static/scripts/tools/pep8.py/missing_whitespace