GSVD for python