ldb-python: add a function to Dn object to compare the Dn with a base DN