Python source code to generate surrogate data sets from parallel spike train data. The methods and some of the implementation aspects are described in the following book chapter: