use urllib2 instead of calling wget