Replaced importlib with __import__ so that the script can be run with python < 2.7