running away from matplotlib's libpng error to ubuntu