Organizing Python Codes Using Functions In Matlab