Updating urllib imports and usage