title: How to get object attribute using ctypes?
body: <p>I'm newbie in Python and ctypes. I'm using <a href="https://github.com/ikelos/pynfc" rel="nofollow"><code>pynfc</code></a>. This is a <a href="http://www.libnfc.org/api/index.html" rel="nofollow"><code>libnfc</code></a> wrap and I can't get attributes over a <a href="http://www.libnfc.org/api/structnfc__device.html" rel="nofollow"><code>nfc_device</code></a> struct.</p>
  
  <p>I'm trying to get the device name as follows:</p>
  
  <pre><code>self.__device = nfc.nfc_open(self.__context, conn_strings[0])
  print self.__device.name
  </code></pre>
  
  <p>but I get:</p>
  
  <pre><code>AttributeError: 'LP_struct_nfc_device' object has no attribute 'name'
  </code></pre>