New comment by abartlet on Samba Github repository https://github.com/samba-team/samba/pull/161#issuecomment-380208585 Comment: Indeed, Samba has chosen to reinvent the wheel with a smaller python2/3 layer. There is a text_type in python/samba/compat.py that may be of assistance.