samba-tool: Replace C version of samba-tool with python version