Js Push Function To Array Python Memory