Changing matplotlib backend to Agg. (really this should be a command
line parameter)