Avoid urls.defaults deprecation warnings