Switched matplotlib backend to avoid attempts to draw plots to screen by default