Js Push Function To Array In Python