title: Python struct.pack and unpack
body: <p>Im in no way an experienced python programmer,thats why i believe there may be an obvious answer to this but i just can't wrap my head around the struct.pack and unpack.
  i have the following code:</p>
  <p><code>struct.pack(&quot;&lt;&quot;+&quot;I&quot;*elements, *self.buf[:elements]) </code></p>
  <p>I want to reverse the the packing of this, however im not sure how, i know that &quot;&lt;&quot; means little endian and &quot;I&quot; is unsigned int and thats about it, im not sure how to use struct.unpack to reverse the packing.</p>