Update download_checkmd5.py

Created a new urlretrieve function that handles retrying if the connection drops. Fixes #559.