Matlab Create Numpy Array Python Functions