prints a dictionary