Add customized print function

add print_dic(arg) function.