Python script to compute LempelZiv complexity for time series as used for example in Schartner, Michael M., et al. "Increased spontaneous MEG signal diversity for psychoactive doses of ketamine, LSD and psilocybin." Scientific reports 7 (2017): 46421.