Use agg before any import frmo mpl