[phecomp][int2browser.py] cleaning write method code