Change matplotlib to use 'Agg'