REF remove local copies of scipy's nanstd, nanmean