Write a python program that sums up all the values from a list of dictionaries
data = [{'key1':1, 'key2':2}, {'key1':2, 'key2':5}]
def sum_dictionaries(data):
  total = 0
  for dic in data:
    total += sum(dic.values())
  return total