PEP8 fixes to analysissessions tests