Coded send_command method and results gathering using telnet.readsome()