fixing pseudotype conversion for R_JSON in the python driver
fixing pseudotype conversion for R_JSON in the js driver
simplifying recursive pseudotype conversion in python client