python - <<'PY'
import json
p='/workspace/scratch/edits.json';e=json.load(open(p));e['HH-4402']={'bottom':1031,'bg':[[[207,315],[473,316],[471,667],[461,676],[422,671],[335,668],[263,672],[215,681],[208,674]],[[216,730],[255,722],[336,718],[419,722],[461,730],[461,755],[469,777],[423,785],[339,789],[262,787],[211,779],[218,757]],[[102,735],[130,725],[130,750],[117,757],[89,753]],[[549,730],[581,739],[597,752],[558,754],[549,746]],[[213,843],[336,850],[468,841],[469,1031],[213,1031]] ]}
json.dump(e,open(p,'w'),indent=2)
PY
OPENBLAS_NUM_THREADS=1 python /workspace/scratch/applyedits.py HH-4402