extract sub matrix from matrix v1 in python