There's a closed pull request on the Samba Samba Github repository Misc py3 c modules https://github.com/samba-team/samba/pull/152 Description: Remainder of the c-modules to be ported. I've enabled the existing tests that cover these modules tor py3 (also split one of the test to try and make it easier to review)