Replaced scipy saprse .max with backported function from utils fixes