use select to print trailing nils in pprint