Deal with breaking changes in requests 1.0