PEP8 cleanup
Improve LDAP connectivity error reporting
Refactor group creation code