Fixed Size Array Javascript Concatenate Function In Python