title: Need tutorial for telnet module in python 3
body: <p>I just switched from python 2 to python 3. One of my python code written with python 2 failed. The error cannot be understand and I don't want to convert my python 2 code into python 3 compatible version. It would be better if I just rewrite the whole program.</p>
  
  <p>However, the resource in google is confusing so I can't find any resource for python 3 telnetlib module. Does anyone know any resource for that?</p>
  
  <p>I attached the error message when I executed the half-way converted python code:</p>
  
  <pre><code>File "E:\Python_Program\telnet.py", line 122, in &lt;module&gt;
      tn.write(ftpUsername + "\n")
    File "C:\Python32\lib\telnetlib.py", line 277, in write
      if IAC in buffer:
  TypeError: 'in &lt;string&gt;' requires string as left operand, not bytes
  </code></pre>