Using pprint to format messages from indexing script