Telnet.write(buffer) 
Write a byte string to the socket, doubling any IAC characters. This can block if the connection is blocked. May raise OSError if the connection is closed.
Changed in version 3.3: This method used to raise socket.error, which is now an alias of OSError.
Please login to continue.