fix for changes in requests lib