use compat2and3.urllib functions