Added a median function to stats.py
Merge pull request #1 from maryrood/master

Added a median function to the script.  Enjoy!