Given a Python dictionary, print out the keys and values that are duplicated.
my_dict = {'a': 'apple', 'b': 'banana', 'c': 'apple'}
for key, value in my_dict.items():
    if my_dict.values().count(value) > 1:
        print(key, value)