[phecomp][int2browser.py] first version of assign_color function