moved pretty_print_dictionary