def add_dict_values(d1, d2):
    """
    Add the values of two dicts
    Helpful code here:
      http://stackoverflow.com/questions/1031199/adding-dictionaries-in-python
    """

    return dict((n, d1.get(n, 0)+d2.get(n, 0)) for n in set(d1)|set(d2) )