Javascript Merge Array Into String Python Definition