modified download.py