Use Pop In Array Javascript Concat Lists In Python