Simplified interface for telnet sessions in Python