Urllib compat for python3.