Make compatible with requests 1.0.
Merge pull request #3 from erikrose/requests-1.0

Make compatible with requests 1.0.