title: If statement works on Python 2 but not on python 3
body: <p>I have this as part of an MQTT message receiver, and I'm trying to port the code to Python 3, the problem is with some if,else statements, they do absolutely nothing on Python 3, for example this one,</p>
  
  <pre><code>if message.topic == "ledDoorSW_mqtt":
      if str(message.payload) == "1":
          device.setPinHigh(13)
      elif str(message.payload) == "0":
          device.setPinLow(13)
  </code></pre>
  
  <p>I understand there are fundamental differences on how each version treat strings but couldn't find out why this is the case here.</p>
  
  <p>any help is appreciated!!..
  thanks..</p>