import telnetlib connection = telnetlib.Telnet()