I added a path exist line to check if the file existe before the download, this is possible by downloading the os.path module.