fix for requests version 1.2.3 (re #326)