http: reuse Python's implementation of read/readline/readinto
Since Python 3 already provides a working implementation of readline,
there is no need for our own buffering implementation. Reduce the
code to transfer accounting only.
# So GitLab doesn't think we're using tons of Perl*.t -linguist-detectable