Wrap response socket for platform compatibility.

Not all platform-dependent sockets provide `makefile()`. This can lead to the following exception:

`AttributeError: '_socket.socket' object has no attribute 'makefile'`

In order to improve compatibility, the response socket can be wrapped with the Python `socket` object.