Decoding and formatting for newbies in Python
<p>I am just trying to do some quick debugging of some Python script, but I am struggeling
a bit as I am a complete newbie with the syntax. I get some data in via the network, that is assigned as you can see in the following:</p>

<pre><code>a = self.block.decode('hex')[95:63:-1]
b = self.midstate.decode('hex')[::-1]
payload = a + b 
print("Data Received {} \n", payload)
</code></pre>

<p>I would be interested in two things:</p>

<ol>
<li><p>How many bytes/bit are hold in <code>payload</code>? I tried <code>payload__len()</code> but that did not work</p></li>
<li><p>I would like to output the <code>payload</code> value in 32 bit hex word, anyone knows how this can be done with Python?</p></li>
</ol>
