model: make print_list() into a static C function