hi tim,
plugin chain is working fine (and you can use all variable already computed) but if you want to do all in your python script there is no issue.
If you dont have it , you can download the python ldap module and then use it to do your LDAP request to your AD (there is also some other which add some specific AD functionality to this LDAP module) as if you did it with LDAP plugin, then you will have to parse your result and output all you custom attribute in order to have these informations available in your incident.
regards.