make matplotlib not interactive (matplotlib.use("agg")