switch from requests to urllib