python/samba: changes to make samba.tests.samba_tool.join run under py3