Js Push Function Into Array Definition In Python