adjusted usage of urllib