Move urllib imports to compat