Updated to use python-requests.