If you have numpy installed:
>>> import numpy as np
>>> a = [[1,2,3],[4,5,6],[7,8,9]]
>>> arr = np.array(a)
>>> arr
array([[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])
>>> np.mean(arr)
5.0
>>> np.mean(arr,axis=0)
array([ 4., 5., 6.])
>>> np.mean(arr,axis=1)
array([ 2., 5., 8.])