updated stats.py

I added median to stats.py.