Медиана питон

//Just do following: ;) 
import numpy as np
np.median(a)
Armandres