def combine_values(d, v):
    """Helper function used in call to .aggregateByKey

    Args:
      d (dict): python dictionary to be aggregated into
      v (tuple): tuple of key, value to be inserted into d

    Returns:
      dict: updated python dictionary from v
    """
    key, value = v
    d[key] = value
    return d