Make chunked_requests python 2 and 3 compatible.

@chriddyp , wanna allow this pull into yr repo and then i'll sort out the merge conflicts and add them back onto your pr?