coursera.py: check return value of wget