title: AttributeError: 'str' object has no attribute 'decode' Python3
body: <p>This line works perfectly in python <strong>2.7.6</strong>, but fails in <strong>Python 3.3.5</strong>. How i can decode to <code>hex</code> value in Python 3.</p>
  
  <pre><code>return x.replace(' ', '').replace('\n', '').decode('hex')
  </code></pre>
  
  <p><strong>Traceback</strong></p>
  
  <pre><code>AttributeError: 'str' object has no attribute 'decode'
  </code></pre>