Fixed Size Array Javascript Iterations In Python For Loop