def py ( self , output ) : import pprint pprint . pprint ( output , stream = self . outfile )
capture output of python pprint into a file
Output data as a nicely - formatted python data structure
def py(self, output):
        """Output data as a nicely-formatted python data structure"""
        import pprint
        pprint.pprint(output, stream=self.outfile)