python unpack replace php unpack
<p>php code</p>

<pre><code>$body = unpack("Lcmd/Lstatus/a*username", $body_string);
</code></pre>

<p>I want use python code replace this line. how to do?</p>

<blockquote>
  <p>struct.error: unpack requires a string argument of length 17</p>
</blockquote>

<pre><code>cnt = unpack('LLs', body_string) 
</code></pre>
