Why are you using wget and not the built-in urllib2?  Or at least requests, which is included in the Anaconda distribution.