Python script for Dovecot's Checkpassword interface for AD ldap