restore download.py