Port from urllib/urllib2 urlopen to python-requests