Add buildDN method to remove repeated code
Remove explicit DN ids from ldap methods
PEP8