factor Eigen->NumPy conv. out of registration functions