title: Python3 Type str doesn't support the buffer API on string comparaison
body: <p>I just moved from python 2.7 to python 3.4 and I get a type error on a simple comparaison of string, I don't understand the error message, my code worked fine in python 2. What am I doing wrong ?</p>
  
  <blockquote>
    <p>Error message: TypeError: Type str doesn't support the buffer API</p>
    
    <p>The error is on line 6</p>
  </blockquote>
  
  <pre><code>def wait_prompt(device, msg, timing, error_msg, port):
  
      output = device.readline()
      t_end = time.time() + timing
      counter = 0
      while not msg in output:
          if time.time() &lt; t_end:
              time.sleep(0.1)
              device.write("\r")
              output = device.readline()
              device.flush()
              loading_msg("msg",counter)
              counter = counter + 1
          else:
              error(error_msg, port)
              return 0
      return 1
  
  def initialize_router(device):
  
      if wait_prompt(device, "[yes/no]:", 10, "waiting for question [yes/no]", port[0]) == 0:
          return 0
  </code></pre>