moved from httplib to requests library