There's a closed pull request on the Samba Samba Github repository Python 3 porting https://github.com/samba-team/samba/pull/156 Description: This PR is based on @noelpower 's work: #152 , which port the c modules used by Python. I then enable `py3_compatible` for tests in selftest one by one.