Replaced httplib with requests