title: python 3 string argument without an encoding
body: <p>This code worked with Python 2.7 but on Python 3.4 I get "string argument without an encoding" error</p>
  
  <pre><code>headers = {'Authorization' : 'Basic ' + base64.b64encode(bytes('Someuser:Somepassword')).encode('ascii')}
  </code></pre>