Workaround for obsolete version of scipy.stats.