Explain The Javascript Array Handling In Python