python script for electrophysiology data analysis