The fluctuations are 0.0 because you've only read one frame. The script was written to analyze an ensemble of thousands of frames.

The averages are computed in the script and written to the output file.

These really are very, very basic questions that you should be discussing with others in your lab rather than posting here.

Rick Venable
computational chemist