Explain The Javascript Array Handling In Python Class