Write Python code to calculate the sum of all the items in a dictionary.
def sum_dict_items(dictionary):
    total = 0
    for key, value in dictionary.items():
        total = total + value
        return total