changeg lib to urllib.request