Updates to JSON in python and R