Make changes need for matplotlib to work in the code sandbox.