Fixed bug where code was using ldap.NO_SUCH_OBJECT . ldap module was not imported.
Switched to self.NO_SUCH_OBJECT .