tests: use importlib for test_examples only on Python3

On Python2 -- run example scripts in a new Python instance