Fix PUT/DELETE in s3.query

Was broken in 8ed7c92 during move to requests.

- PUT now uploads data
- Fixes AttributeError
Merge pull request #19143 from rallytime/bp-19079

Backport #19079 to 2014.7