from scipy import misc
print(misc.imread('rainbow.jpg').mean(axis=(0,1))) # MEAN (correct)