checking in Matlab and Python scripts