Javascript Array Push Variable Assignment In Python Program