Minor changes to the core.py file function download().