Replace pycurl library in osmclient by requests library