Modified to use Requests instead of httplib2.