added importlib for backward compatibility with python < 2.7