Update the ldap scripts to pep8 compliant

Ldaplist had merge conflicts so I'll fix it up in a future patch.

Change-Id: I5a65653c4ab51c953c5b53390dbc475b397cf0f3