Removed median function from stats.py.