sock.makefile() returns a file object associated with the socket.
The socket must be in blocking mode.
Closing the object returned by makefile() does not close the original socket unless all other file objects have been closed and close() has also been called on the socket object.