Exposure of nd::arrfunc to python