Python telnet api for switches