You check it out here.
It supports the following methods:
Usage:
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.connect((hostname,port))
bs = bufsock.bufsock(sock)
version = bs.readto('\n')
print version
Related work
You can e-mail the author with questions or comments: