Changed to use telnetlib.read_until so that we can time out the connection.