Unique Elements From Array Javascript Append Strings In Python