[phecomp][int2browser.py] first implementation of writeBed