- with (open(analysis_h_file, 'a+', encoding='utf8') as a_history,
- open(analysis_h_file, 'r', encoding='utf8') as c_history):
+ with open(analysis_h_file, 'a+', encoding='utf8') as a_history, \
+ open(analysis_h_file, 'r', encoding='utf8') as c_history:
Fixed with on line 137: