Moving through timeseries in pvpython

Hello,

I am a beginner paraview user, and am running into what seems to be a basic issue, appreciate any pointers as to what I am doing wrong.
I have a exodus file that contains information over multiple timesteps. In the GUI I can easily go to a particular timestep and see the range of values for a particular field viz. temperature. However, when I try to do this in pvpython, it looks like I always get the values for timestep 0.

You see temperature is 0 at timestep 0

At the final timestep, temp is non zero

However, in pvpython I always get the range of temperature for timestep 0
I used the following pages. However, I couldnt find an example of how to do time stepping there so I tried using the getanimationscene module to no avail. Is there a simple way to do this?

Appreciate the help! Let me know if something seems confusing/unclear.

Looks like a similar question was asked here.

However, the solution of UpdatePipeline suggested there didnt work.

reader.UpdatePipeline(timesteps[n]) should do the trick

Ah! Thanks! I see the UpdatePipeline accepts time argument. Knew it had to be something trivial. It works now!