code: def print_stats(img):
      
      stat = ImageStat.Stat(img)
      print("extrema    : ", stat.extrema)
      print("count      : ", stat.count)
      print("sum        : ", stat.sum)
      print("sum2       : ", stat.sum2)
      print("mean       : ", stat.mean)
      print("median     : ", stat.median)
      print("rms        : ", stat.rms)
      print("var        : ", stat.var)
      print("stddev     : ", stat.stddev)
docs: prints stats, remember that img should already have been loaded