Fixed #21335 -- Use importlib from python3 when using python3