[phecomp][int2browser.py] code rearrangements