Made the upgrade to Mac OS X 10.8 (Mountain Lion) and get now the following error when trying to call $ pip:
$ pip
Traceback (most recent call last):
I actually couldn't do what was suggested. I instead had to execute:
xcode-select --install
Then I was able to install the ldap module.