Python Program Using Functions In Matlab