Fixing flake8 in ldap.
Merge pull request #1809 from joshmoore/ldap-flake-fixes

Fixing flake8 in ldap.