pyloxml to json and draw the tree