try except on matplotlib import