Adding python telnet substitution