Python to rpc reply

How can i send a json string from python file to rpc reply by converting it into xml tags. In java there is a method called ConfXMLParams similar to that is there any method in python.

Check: $CONFD_DIR/examples.confd/intro/python/7-actions.

If Possible can you please send the method. I have seen 7-actions but couldn’t find that. I want to send a json data to rpc so that it prints in xml format.
Thanks in advance.