title: Retrieving data inside a value that came with python
body: <p>There is a code structure as shown below.
  How can I get the value in State: <code>[b'8e4d29d4-c144-4d18-aecc-77f4567d8d32']</code> coming in loop?</p>
  <p>i.e., I want to get the &quot;state&quot; value.</p>
  <pre><code># send request
  reply = srv.SendPacket(req)
  print(reply)
  
  if reply.code == pyrad.packet.AccessAccept:
      print(&quot;access accepted&quot;)
  else:
      print(&quot;access denied&quot;)
  
  print(&quot;Attributes returned by server:&quot;)
  for i in reply.keys():
      print(&quot;%s: %s&quot; % (i, reply[i]))
  </code></pre>
  <pre class="lang-none prettyprint-override"><code>(venv) host@local-pc:~/Documents/Workshop/radiusapplication$ python3 test1.py 
  AuthPacket([(18, [b'Enter Passcode']), (24, [b'8e4d29d4-c144-4d18-aecc-77f4567d8d32'])])
  access denied
  Attributes returned by server:
  Reply-Message: ['Enter Passcode']
  State: [b'8e4d29d4-c144-4d18-aecc-77f4567d8d32']
  </code></pre>