import needs to be protected with ``try except ImportError`` as in the matplotlib import utility function