Adapt to requests >= 1.0
Merge pull request #54 from fredj/requests

Adapt to requests >= 1.0