python/samba/tests: Use io.StringIO for py3 and StringIO.StrinIO for py2