Revert "Revert "Update the ldap scripts to pep8 compliant""

This reverts commit dfbf3ab10ae1f60dedade5775c2edfc0af644765.

Change-Id: Icc35abe6668b9e547222e9abe9d579468cf6835a
Revert "Revert "Fix various noc files to be pep8 compliant""

This reverts commit fff0d2e8dc42cf3af4901f11616cc50b855e6796.

I'll merge it this time!

Change-Id: I1530fe1e3dc6c63a4b85ab6dee7bee5e08acfc2c