title: How do I fix this error? TypeError: 'str' does not support the buffer interface
body: <pre><code>&gt;&gt;&gt; import struct
  &gt;&gt;&gt; s = '\x00\x00\x00\x01\x00\x00\x00\xff\xff\x00\x00'
  &gt;&gt;&gt; struct.unpack('11B', s)
  Traceback (most recent call last):
    File "&lt;pyshell#3&gt;", line 1, in &lt;module&gt;
      struct.unpack('11B', s)
  TypeError: 'str' does not support the buffer interface
  </code></pre>
  
  <p>What is wrong with this? Please help.</p>