Replace urllib2 with python-requests