nit: please don't import parts of a module, instead just do urllib2.Request, etc.