move matplotlib.use to before importing pyplot