use io.write and skip buf in pprint; allow custom printer in pprint.pformat