Update download_lib.py

works. some functions need to catch errors better.