title: Using re.sub and getting error
body: <p>I'm trying to use re.sub on a url but when I do I get a error about </p>
  
  <pre><code>expected string or buffer
  </code></pre>
  
  <p>This is the code:</p>
  
  <pre><code>elif used_prefix and cmd == "cats" and self.getAccess(user) &gt;=1 and len(args) == 0:
     try:
        url = "http://catfacts-api.appspot.com/api/facts"
        f = urllib.request.urlopen(url)
        data = json.loads(f.readall().decode("utf-8"))["facts"]
        data = re.sub(r'\&lt;.*?\&gt;',"",data).replace("\\","")
        room.message("Random Cat Fact: %s" % data)
     except:
        room.message((str(sys.exc_info()[1])))
        print(traceback.format_exc())
  </code></pre>
  
  <p>It's suppose to remove the [" around the words "] and to remove the "\"aroundwords"\"</p>