title: Python 3 - TypeError: a bytes-like object is required, not 'str'
body: <p>I'm working on a lesson from Udacity and am having some issue trying to find out if the result from this site returns true or false. I get the TypeError with the code below.</p>
  
  <pre><code>   from urllib.request import urlopen
      #check text for curse words  
      def check_profanity():
          f = urlopen("http://www.wdylike.appspot.com/?q=shit")
          output = f.read()
          f.close()
          print(output)
          if "b'true'" in output:
              print("There is a profane word in the document")
  
      check_profanity()
  </code></pre>
  
  <p>The output prints <code>b'true'</code> and I'm not really sure where that 'b' is coming from.</p>