Getting the realtime data from Pixhawk using ardusub

I am trying to get the realtime IMU data using Ardusub using Rpi5. I use pymavlink library to extract the real time data. Please find the code below:
image

I dont see any output coming. I request anyone could help on the same
image