put matlab and python code together