update of upf_to_json.py script