There's a closed pull request on the Samba Samba Github repository WIP Py2/Py3 porting (not for review) https://github.com/samba-team/samba/pull/161 Description: Changes to allow samba.tests.dsdb_lock is py2/py3 compatible. This tests a bit more some of the previous modules already ported