Bug/python urllib2 compatibility