Python Function Returning Array Js Push