Import matplotlib for runipy automation, fix errors