modified:   medium.py