allow newer versions of matplotlib and scipy