Updates to work with requests 1.2.3

The requests stubs were not used correctly. A few changes were neccessary in order for them to work properly