Recursive Python function to convert a JSON object to XML