refactored media.py
why I gotta merge