Python Function Returning Array Js Push Method