orgnize python and matlab code