add set matrix zeros python version