def tostring(self):
        """return a pretty-printed string output for rpc reply"""
        parser = etree.XMLParser(remove_blank_text=True)
        outputtree = etree.XML(etree.tostring(self.__doc), parser)
        return etree.tostring(outputtree, pretty_print=True)
def tostring ( self ) : parser = etree . XMLParser ( remove_blank_text = True ) outputtree = etree . XML ( etree . tostring ( self . __doc ) , parser ) return etree . tostring ( outputtree , pretty_print = True )
return a pretty-printed string output for rpc reply