add ldapdb entry to logging settings
fix pep8 errors