API change in requests 1.x