python: samba.tests: Move import of ported modules out of PY3 condition