def AddVotes(riding_number, party_code, additional_votes):
    if riding_number not in ridings:
        ridings[riding_number] = {}
    riding = ridings[riding_number]
    if party_code not in riding:
        riding[party_code] = 0
    riding[party_code] += additional_votes
dataset/ETHPy150Open j3camero/canada-election-forecast/calculate_redistributed_2011_results.py/AddVotes/original