a python version to convert xml to json format.