fix PUT for urllib2