Note that this is still work in progress and will be finished in another patch. Specifically, it currently doesn't cover baseldap.py classes.