Rework the tests for use with Python3

Not sure if you want to merge this, but here are some tests I wrote when fixing the python3 support.

It uses the python3-ldap library because unlike python-ldap it supports Python3, and Tox makes it a lot easier to test both Python 2 & 3 at the same time.