Matlab and Python scripts for calculating functional coupling between time series data