omfg finally its the entire thing and it works on the new dataset.  Thank god!  Its still a mess, need to clean it up.  Also, need to add sess2 df (for baseline 2nd sess comparison) and adjust the output so each spreadsheet has column names unique to the spreadsheet (e.g. test_slope vs test_df