LDB is the database engine used in Samba4. We have python interface for it. For further information see .
Installing in debian/ubuntu:
apt-get install python-ldb
There is package for ArchLinux in AUR:
There is some other modules, we need to describe them there.