moving wget code to download.py