python/samba/emulate: py2/py3 .next usage, replace with next() fn