general: fixes and improvements for several personalization features

1: D100 Docstring missing
25:29: E126 continuation line over-indented for hanging indent
27:6: E126 continuation line over-indented for hanging indent
38:9: E126 continuation line over-indented for hanging indent
58:1: E302 expected 2 blank lines, found 1
58: D400 First line should end with '.', not 'e'
64:13: E126 continuation line over-indented for hanging indent
64:15: E251 unexpected spaces around keyword / parameter equals
64:17: E251 unexpected spaces around keyword / parameter equals
65:16: E251 unexpected spaces around keyword / parameter equals
65:18: E251 unexpected spaces around keyword / parameter equals
66:18: E251 unexpected spaces around keyword / parameter equals
66:20: E251 unexpected spaces around keyword / parameter equals
68:1: E302 expected 2 blank lines, found 1
70:5: F841 local variable '_' is assigned to but never used
77:44: E713 test for membership should be 'not in'
83:1: E302 expected 2 blank lines, found 1
83:46: E251 unexpected spaces around keyword / parameter equals
83:48: E251 unexpected spaces around keyword / parameter equals
83: D202 No blank lines allowed *after* function docstring, found 1
83: D205 Blank line missing between one-line summary and description
119:11: E251 unexpected spaces around keyword / parameter equals
119:13: E251 unexpected spaces around keyword / parameter equals
120:12: E251 unexpected spaces around keyword / parameter equals
120:14: E251 unexpected spaces around keyword / parameter equals
121:14: E251 unexpected spaces around keyword / parameter equals
121:16: E251 unexpected spaces around keyword / parameter equals
122:14: E251 unexpected spaces around keyword / parameter equals
122:16: E251 unexpected spaces around keyword / parameter equals
123:19: E251 unexpected spaces around keyword / parameter equals
123:21: E251 unexpected spaces around keyword / parameter equals
127:1: E302 expected 2 blank lines, found 1
127: D202 No blank lines allowed *after* function docstring, found 1
127: D200 One-line docstring should not occupy 3 lines
142:5: E125 continuation line with same indent as next logical line
148:5: F841 local variable '_' is assigned to but never used
150:69: E251 unexpected spaces around keyword / parameter equals
150:71: E251 unexpected spaces around keyword / parameter equals
150:80: E251 unexpected spaces around keyword / parameter equals
150:82: E251 unexpected spaces around keyword / parameter equals
150:17: E221 multiple spaces before operator
151:42: E272 multiple spaces before keyword
151:83: E272 multiple spaces before keyword
151:17: E221 multiple spaces before operator
152:41: E272 multiple spaces before keyword
152:82: E272 multiple spaces before keyword
152:16: E221 multiple spaces before operator
153:43: E272 multiple spaces before keyword
153:84: E272 multiple spaces before keyword
153:18: E221 multiple spaces before operator
154:43: E272 multiple spaces before keyword
154:84: E272 multiple spaces before keyword
154:18: E221 multiple spaces before operator
156:40: E272 multiple spaces before keyword
156:58: E272 multiple spaces before keyword
156:15: E221 multiple spaces before operator
157:41: E272 multiple spaces before keyword
157:82: E272 multiple spaces before keyword
157:16: E221 multiple spaces before operator
158:46: E272 multiple spaces before keyword
158:82: E272 multiple spaces before keyword
158:21: E221 multiple spaces before operator
159:44: E272 multiple spaces before keyword
159:80: E272 multiple spaces before keyword
159:19: E221 multiple spaces before operator
160:24: E221 multiple spaces before operator
161:43: E272 multiple spaces before keyword
161:84: E272 multiple spaces before keyword
161:18: E221 multiple spaces before operator
162:42: E272 multiple spaces before keyword
162:78: E272 multiple spaces before keyword
162:17: E221 multiple spaces before operator
184:11: E251 unexpected spaces around keyword / parameter equals
184:13: E251 unexpected spaces around keyword / parameter equals
185:17: E251 unexpected spaces around keyword / parameter equals
185:19: E251 unexpected spaces around keyword / parameter equals
186:21: E251 unexpected spaces around keyword / parameter equals
186:23: E251 unexpected spaces around keyword / parameter equals
187:16: E251 unexpected spaces around keyword / parameter equals
187:18: E251 unexpected spaces around keyword / parameter equals
188:16: E251 unexpected spaces around keyword / parameter equals
188:18: E251 unexpected spaces around keyword / parameter equals
189:15: E251 unexpected spaces around keyword / parameter equals
189:17: E251 unexpected spaces around keyword / parameter equals
190:17: E251 unexpected spaces around keyword / parameter equals
190:19: E251 unexpected spaces around keyword / parameter equals
191:17: E251 unexpected spaces around keyword / parameter equals
191:19: E251 unexpected spaces around keyword / parameter equals
192:14: E251 unexpected spaces around keyword / parameter equals
192:16: E251 unexpected spaces around keyword / parameter equals
193:15: E251 unexpected spaces around keyword / parameter equals
193:17: E251 unexpected spaces around keyword / parameter equals
194:20: E251 unexpected spaces around keyword / parameter equals
194:22: E251 unexpected spaces around keyword / parameter equals
195:18: E251 unexpected spaces around keyword / parameter equals
195:20: E251 unexpected spaces around keyword / parameter equals
196:16: E251 unexpected spaces around keyword / parameter equals
196:18: E251 unexpected spaces around keyword / parameter equals
197:23: E251 unexpected spaces around keyword / parameter equals
197:25: E251 unexpected spaces around keyword / parameter equals
198:17: E251 unexpected spaces around keyword / parameter equals
198:19: E251 unexpected spaces around keyword / parameter equals
200:1: E302 expected 2 blank lines, found 1
200: D400 First line should end with '.', not 't'
206:37: E251 unexpected spaces around keyword / parameter equals
206:39: E251 unexpected spaces around keyword / parameter equals
206:31: E211 whitespace before '('
207:37: E251 unexpected spaces around keyword / parameter equals
207:39: E251 unexpected spaces around keyword / parameter equals
208:39: E251 unexpected spaces around keyword / parameter equals
208:41: E251 unexpected spaces around keyword / parameter equals
209:35: E251 unexpected spaces around keyword / parameter equals
209:37: E251 unexpected spaces around keyword / parameter equals
217:37: E251 unexpected spaces around keyword / parameter equals
217:39: E251 unexpected spaces around keyword / parameter equals
217:31: E211 whitespace before '('
218:37: E251 unexpected spaces around keyword / parameter equals
218:39: E251 unexpected spaces around keyword / parameter equals
219:39: E251 unexpected spaces around keyword / parameter equals
219:41: E251 unexpected spaces around keyword / parameter equals
220:35: E251 unexpected spaces around keyword / parameter equals
220:37: E251 unexpected spaces around keyword / parameter equals
221:19: E211 whitespace before '('
279:1: E302 expected 2 blank lines, found 1
282:14: E126 continuation line over-indented for hanging indent
282:16: E251 unexpected spaces around keyword / parameter equals
282:18: E251 unexpected spaces around keyword / parameter equals
283:19: E251 unexpected spaces around keyword / parameter equals
283:21: E251 unexpected spaces around keyword / parameter equals
284:18: E251 unexpected spaces around keyword / parameter equals
284:20: E251 unexpected spaces around keyword / parameter equals
285:12: E126 continuation line over-indented for hanging indent
287:1: E302 expected 2 blank lines, found 1
290:55: E251 unexpected spaces around keyword / parameter equals
290:57: E251 unexpected spaces around keyword / parameter equals
292:1: E302 expected 2 blank lines, found 1
292: D202 No blank lines allowed *after* function docstring, found 1
292: D400 First line should end with '.', not 'd'
292: D205 Blank line missing between one-line summary and description
313:14: E126 continuation line over-indented for hanging indent
313:16: E251 unexpected spaces around keyword / parameter equals
313:18: E251 unexpected spaces around keyword / parameter equals
314:19: E251 unexpected spaces around keyword / parameter equals
314:21: E251 unexpected spaces around keyword / parameter equals
315:28: E251 unexpected spaces around keyword / parameter equals
315:30: E251 unexpected spaces around keyword / parameter equals
319:12: E126 continuation line over-indented for hanging indent
344:21: E126 continuation line over-indented for hanging indent
344:23: E251 unexpected spaces around keyword / parameter equals
344:25: E251 unexpected spaces around keyword / parameter equals
345:28: E251 unexpected spaces around keyword / parameter equals
345:30: E251 unexpected spaces around keyword / parameter equals
346:28: E251 unexpected spaces around keyword / parameter equals
346:30: E251 unexpected spaces around keyword / parameter equals
347:36: E251 unexpected spaces around keyword / parameter equals
347:38: E251 unexpected spaces around keyword / parameter equals
349:17: E121 continuation line under-indented for hanging indent
355:17: E126 continuation line over-indented for hanging indent
355:19: E251 unexpected spaces around keyword / parameter equals
355:21: E251 unexpected spaces around keyword / parameter equals
356:24: E251 unexpected spaces around keyword / parameter equals
356:26: E251 unexpected spaces around keyword / parameter equals
357:31: E251 unexpected spaces around keyword / parameter equals
357:33: E251 unexpected spaces around keyword / parameter equals
358:29: E251 unexpected spaces around keyword / parameter equals
358:31: E251 unexpected spaces around keyword / parameter equals
359:27: E251 unexpected spaces around keyword / parameter equals
359:29: E251 unexpected spaces around keyword / parameter equals
364:17: E126 continuation line over-indented for hanging indent
364:19: E251 unexpected spaces around keyword / parameter equals
364:21: E251 unexpected spaces around keyword / parameter equals
365:31: E251 unexpected spaces around keyword / parameter equals
365:33: E251 unexpected spaces around keyword / parameter equals
366:27: E251 unexpected spaces around keyword / parameter equals
366:29: E251 unexpected spaces around keyword / parameter equals
370:8: E225 missing whitespace around operator
371:17: E126 continuation line over-indented for hanging indent
371:19: E251 unexpected spaces around keyword / parameter equals
371:21: E251 unexpected spaces around keyword / parameter equals
372:26: E251 unexpected spaces around keyword / parameter equals
372:28: E251 unexpected spaces around keyword / parameter equals
373:27: E251 unexpected spaces around keyword / parameter equals
373:29: E251 unexpected spaces around keyword / parameter equals
396:1: E302 expected 2 blank lines, found 1
399:14: E126 continuation line over-indented for hanging indent
399:21: E251 unexpected spaces around keyword / parameter equals
399:23: E251 unexpected spaces around keyword / parameter equals
400:16: E251 unexpected spaces around keyword / parameter equals
400:18: E251 unexpected spaces around keyword / parameter equals
401:19: E251 unexpected spaces around keyword / parameter equals
401:21: E251 unexpected spaces around keyword / parameter equals
402:12: E126 continuation line over-indented for hanging indent
405:1: E302 expected 2 blank lines, found 1
405: D103 Docstring missing
437:14: E126 continuation line over-indented for hanging indent
437:16: E251 unexpected spaces around keyword / parameter equals
437:18: E251 unexpected spaces around keyword / parameter equals
438:21: E251 unexpected spaces around keyword / parameter equals
438:23: E251 unexpected spaces around keyword / parameter equals
439:22: E251 unexpected spaces around keyword / parameter equals
439:24: E251 unexpected spaces around keyword / parameter equals
440:32: E251 unexpected spaces around keyword / parameter equals
440:34: E251 unexpected spaces around keyword / parameter equals
441:21: E251 unexpected spaces around keyword / parameter equals
441:23: E251 unexpected spaces around keyword / parameter equals
442:29: E251 unexpected spaces around keyword / parameter equals
442:31: E251 unexpected spaces around keyword / parameter equals
443:17: E251 unexpected spaces around keyword / parameter equals
443:19: E251 unexpected spaces around keyword / parameter equals
444:12: E126 continuation line over-indented for hanging indent
448: D103 Docstring missing
449:55: E251 unexpected spaces around keyword / parameter equals
449:57: E251 unexpected spaces around keyword / parameter equals
452:1: E302 expected 2 blank lines, found 1
452: D103 Docstring missing
456:1: E302 expected 2 blank lines, found 1
456: D103 Docstring missing
460:1: E302 expected 2 blank lines, found 1
460: D103 Docstring missing
461:58: E251 unexpected spaces around keyword / parameter equals
461:60: E251 unexpected spaces around keyword / parameter equals
461:70: E251 unexpected spaces around keyword / parameter equals
461:72: E251 unexpected spaces around keyword / parameter equals
464:1: E302 expected 2 blank lines, found 1
464: D103 Docstring missing
465:59: E201 whitespace after '('
465:62: E251 unexpected spaces around keyword / parameter equals
465:64: E251 unexpected spaces around keyword / parameter equals
466:44: E128 continuation line under-indented for visual indent
466:47: E251 unexpected spaces around keyword / parameter equals
466:49: E251 unexpected spaces around keyword / parameter equals
467:42: E124 closing bracket does not match visual indentation
470:1: E302 expected 2 blank lines, found 1
470: D103 Docstring missing
472:14: E126 continuation line over-indented for hanging indent
472:16: E251 unexpected spaces around keyword / parameter equals
472:18: E251 unexpected spaces around keyword / parameter equals
473:21: E251 unexpected spaces around keyword / parameter equals
473:23: E251 unexpected spaces around keyword / parameter equals
474:17: E251 unexpected spaces around keyword / parameter equals
474:19: E251 unexpected spaces around keyword / parameter equals
475:18: E251 unexpected spaces around keyword / parameter equals
475:20: E251 unexpected spaces around keyword / parameter equals
476:12: E126 continuation line over-indented for hanging indent
478:1: E302 expected 2 blank lines, found 1
478: D401 First line should be imperative: 'Return', not 'Returns'