Fix issue with matplotlib importing that was preventing backend from being changed.