+ backported two fixes from newer python: + close the file even if an exception occurs (py#5536) + urllib doesn't correct server returned urls (py#918368) + thanks karolus <karlooforum at arcor dot de> for analyzing and suggesting the fix