switch api requests to urllib3