print_format now handles the depricated data.set class too, passes tests