general: fixes and improvements for several personalization features

1: D290 White spaces around docstring should be trimmed.
1: D400 First line should end with '.', not 'e'
4: I102 copyright year is outdated, expected 2014 but got 2013
32:38: E126 continuation line over-indented for hanging indent
42:1: E302 expected 2 blank lines, found 1
42: D202 No blank lines allowed *after* function docstring, found 1
42: D400 First line should end with '.', not ','
42: D205 Blank line missing between one-line summary and description
78:1: E302 expected 2 blank lines, found 1
78: D290 White spaces around docstring should be trimmed.
78: D400 First line should end with '.', not 's'
86:16: E225 missing whitespace around operator
86:38: E225 missing whitespace around operator
91:1: E302 expected 2 blank lines, found 1
91: D400 First line should end with '.', not 't'
136:1: E302 expected 2 blank lines, found 1
136: D202 No blank lines allowed *after* function docstring, found 1
162:1: E302 expected 2 blank lines, found 1
162: D202 No blank lines allowed *after* function docstring, found 1
179:1: E302 expected 2 blank lines, found 1
179: D290 White spaces around docstring should be trimmed.
179: D400 First line should end with '.', not 'f'
179: D205 Blank line missing between one-line summary and description
196:1: E302 expected 2 blank lines, found 1
196: D400 First line should end with '.', not 't'
205:1: E302 expected 2 blank lines, found 1
205: D202 No blank lines allowed *after* function docstring, found 1
217:1: E302 expected 2 blank lines, found 1
217: D202 No blank lines allowed *after* function docstring, found 1
229:1: E302 expected 2 blank lines, found 1
229: D202 No blank lines allowed *after* function docstring, found 1
236:20: E231 missing whitespace after ','
241:1: E302 expected 2 blank lines, found 1
241: D400 First line should end with '.', not ','
241: D205 Blank line missing between one-line summary and description
259:1: E302 expected 2 blank lines, found 1
259: D209 Put multi-line docstring closing quotes on separate line
259: D202 No blank lines allowed *after* function docstring, found 1
259: D400 First line should end with '.', not ','
259: D205 Blank line missing between one-line summary and description
282:1: E302 expected 2 blank lines, found 1
282: D400 First line should end with '.', not 'e'
286:1: E302 expected 2 blank lines, found 1
286: D290 White spaces around docstring should be trimmed.
286: D400 First line should end with '.', not 'c'
292:1: E302 expected 2 blank lines, found 1
292: D400 First line should end with '.', not 'c'
303:1: E302 expected 2 blank lines, found 1
303: D202 No blank lines allowed *after* function docstring, found 1
314:75: E502 the backslash is redundant between brackets
315:71: E225 missing whitespace around operator
336:1: E302 expected 2 blank lines, found 1
336: D400 First line should end with '.', not 'c'
347:1: E302 expected 2 blank lines, found 1
347: D209 Put multi-line docstring closing quotes on separate line
347: D202 No blank lines allowed *after* function docstring, found 1
347: D400 First line should end with '.', not ','
347: D205 Blank line missing between one-line summary and description
405:1: E302 expected 2 blank lines, found 1
405: D209 Put multi-line docstring closing quotes on separate line
405: D202 No blank lines allowed *after* function docstring, found 1
405: D400 First line should end with '.', not 's'
405: D205 Blank line missing between one-line summary and description
441:1: E302 expected 2 blank lines, found 1
441: D202 No blank lines allowed *after* function docstring, found 1
457:1: E302 expected 2 blank lines, found 1
457: D202 No blank lines allowed *after* function docstring, found 1
501:1: E302 expected 2 blank lines, found 1
501: D202 No blank lines allowed *after* function docstring, found 1
565:1: E302 expected 2 blank lines, found 1
565: D401 First line should be imperative: 'Retrieve', not 'Retrieves'
565: D202 No blank lines allowed *after* function docstring, found 1
610:38: E231 missing whitespace after ','
613:45: E231 missing whitespace after ','
617:1: E302 expected 2 blank lines, found 1
617: D290 White spaces around docstring should be trimmed.
617: D400 First line should end with '.', not 'l'
617: D205 Blank line missing between one-line summary and description
628:1: E302 expected 2 blank lines, found 1
628: D205 Blank line missing between one-line summary and description
637:17: E127 continuation line over-indented for visual indent
647:1: E302 expected 2 blank lines, found 1
647: D400 First line should end with '.', not 't'
663:47: E225 missing whitespace around operator
679:1: E302 expected 2 blank lines, found 1
679: D202 No blank lines allowed *after* function docstring, found 1
679: D400 First line should end with '.', not 'd'
685:37: E225 missing whitespace around operator
711:1: E302 expected 2 blank lines, found 1
761:45: E231 missing whitespace after ','
761:72: E231 missing whitespace after ','
804: D290 White spaces around docstring should be trimmed.
804: D400 First line should end with '.', not ')'
900:41: E231 missing whitespace after ','
900:64: E231 missing whitespace after ','
947:1: E302 expected 2 blank lines, found 1
947: D202 No blank lines allowed *after* function docstring, found 1
962:28: E231 missing whitespace after ','
966:1: E302 expected 2 blank lines, found 1
966: D202 No blank lines allowed *after* function docstring, found 1
984:28: E231 missing whitespace after ','
988:1: E302 expected 2 blank lines, found 1
988: D202 No blank lines allowed *after* function docstring, found 1
1005:22: E231 missing whitespace after ','
1007:1: E302 expected 2 blank lines, found 1
1007: D202 No blank lines allowed *after* function docstring, found 1
1017:22: E231 missing whitespace after ','
1019:1: E302 expected 2 blank lines, found 1
1019: D202 No blank lines allowed *after* function docstring, found 1
1032:22: E231 missing whitespace after ','
1034:1: E302 expected 2 blank lines, found 1
1034: D202 No blank lines allowed *after* function docstring, found 1
1044:28: E231 missing whitespace after ','
1052:1: E302 expected 2 blank lines, found 1
1052: D209 Put multi-line docstring closing quotes on separate line
1052: D202 No blank lines allowed *after* function docstring, found 1
1052: D400 First line should end with '.', not ','
1052: D205 Blank line missing between one-line summary and description
1083:1: E302 expected 2 blank lines, found 1
1083: D202 No blank lines allowed *after* function docstring, found 1
1094:1: E302 expected 2 blank lines, found 1
1094: D202 No blank lines allowed *after* function docstring, found 1
1115:1: E302 expected 2 blank lines, found 1
1115: D209 Put multi-line docstring closing quotes on separate line
1115: D202 No blank lines allowed *after* function docstring, found 1
1115: D205 Blank line missing between one-line summary and description
1140:1: E302 expected 2 blank lines, found 1
1140: D209 Put multi-line docstring closing quotes on separate line
1140: D202 No blank lines allowed *after* function docstring, found 1
1140: D400 First line should end with '.', not '>'
1140: D205 Blank line missing between one-line summary and description
1173:1: E302 expected 2 blank lines, found 1
1173: D400 First line should end with '.', not 'o'
1173: D205 Blank line missing between one-line summary and description
1195:1: E302 expected 2 blank lines, found 1
1195: D209 Put multi-line docstring closing quotes on separate line
1195: D202 No blank lines allowed *after* function docstring, found 1
1195: D205 Blank line missing between one-line summary and description
1216:1: E302 expected 2 blank lines, found 1
1216: D209 Put multi-line docstring closing quotes on separate line
1216: D202 No blank lines allowed *after* function docstring, found 1
1216: D400 First line should end with '.', not ','
1216: D205 Blank line missing between one-line summary and description
1284:1: E302 expected 2 blank lines, found 1
1284: D209 Put multi-line docstring closing quotes on separate line
1284: D202 No blank lines allowed *after* function docstring, found 1
1284: D400 First line should end with '.', not 's'
1284: D205 Blank line missing between one-line summary and description
1328:1: E302 expected 2 blank lines, found 1
1328: D209 Put multi-line docstring closing quotes on separate line
1328: D202 No blank lines allowed *after* function docstring, found 1
1328: D400 First line should end with '.', not ')'
1328: D205 Blank line missing between one-line summary and description
1345:1: E302 expected 2 blank lines, found 1
1345: D202 No blank lines allowed *after* function docstring, found 1
1357:1: E302 expected 2 blank lines, found 1
1357: D202 No blank lines allowed *after* function docstring, found 1
1375:1: E302 expected 2 blank lines, found 1
1403:1: E302 expected 2 blank lines, found 1
1403: D103 Docstring missing
1425:1: E302 expected 2 blank lines, found 1
1425: D209 Put multi-line docstring closing quotes on separate line
1425: D202 No blank lines allowed *after* function docstring, found 1
1425: D400 First line should end with '.', not 's'
1425: D205 Blank line missing between one-line summary and description
1450:1: E302 expected 2 blank lines, found 1
1450: D401 First line should be imperative: 'Return', not 'Returns'
1450: D202 No blank lines allowed *after* function docstring, found 1
1468:1: E302 expected 2 blank lines, found 1
1468: D290 White spaces around docstring should be trimmed.
1468: D201 No blank lines allowed *before* function docstring, found 1
1468: D400 First line should end with '.', not 'h'
1468: D205 Blank line missing between one-line summary and description
1500:1: E302 expected 2 blank lines, found 1
1500: D209 Put multi-line docstring closing quotes on separate line
1500: D202 No blank lines allowed *after* function docstring, found 1
1500: D400 First line should end with '.', not 'y'
1500: D205 Blank line missing between one-line summary and description
1501:41: E128 continuation line under-indented for visual indent
1555:1: E302 expected 2 blank lines, found 1
1555: D209 Put multi-line docstring closing quotes on separate line
1555: D202 No blank lines allowed *after* function docstring, found 1
1555: D400 First line should end with '.', not 'y'
1555: D205 Blank line missing between one-line summary and description
1590:1: E302 expected 2 blank lines, found 1
1590: D209 Put multi-line docstring closing quotes on separate line
1590: D202 No blank lines allowed *after* function docstring, found 1
1590: D400 First line should end with '.', not ','
1590: D205 Blank line missing between one-line summary and description
1634:1: E302 expected 2 blank lines, found 1
1634: D209 Put multi-line docstring closing quotes on separate line
1634: D202 No blank lines allowed *after* function docstring, found 1
1634: D400 First line should end with '.', not 'g'
1634: D205 Blank line missing between one-line summary and description
1665:1: E302 expected 2 blank lines, found 1
1665: D209 Put multi-line docstring closing quotes on separate line
1665: D400 First line should end with '.', not ')'
1665: D205 Blank line missing between one-line summary and description
1691:1: E302 expected 2 blank lines, found 1
1691: D202 No blank lines allowed *after* function docstring, found 1
1717:1: E302 expected 2 blank lines, found 1
1717: D205 Blank line missing between one-line summary and description
1740:1: E302 expected 2 blank lines, found 1
1750:1: E302 expected 2 blank lines, found 1
1750: D401 First line should be imperative: 'Return', not 'Returns'
1750: D202 No blank lines allowed *after* function docstring, found 1
1761:1: E302 expected 2 blank lines, found 1
1761: D209 Put multi-line docstring closing quotes on separate line
1761: D202 No blank lines allowed *after* function docstring, found 1
1761: D400 First line should end with '.', not 's'
1761: D205 Blank line missing between one-line summary and description
1799:1: E302 expected 2 blank lines, found 1
1799: D202 No blank lines allowed *after* function docstring, found 1
1810:1: E302 expected 2 blank lines, found 1
1810: D209 Put multi-line docstring closing quotes on separate line
1810: D202 No blank lines allowed *after* function docstring, found 1
1810: D400 First line should end with '.', not 's'
1810: D205 Blank line missing between one-line summary and description
1871:1: E302 expected 2 blank lines, found 1
1871: D209 Put multi-line docstring closing quotes on separate line
1871: D202 No blank lines allowed *after* function docstring, found 1
1871: D205 Blank line missing between one-line summary and description
1886:1: E302 expected 2 blank lines, found 1
1886: D202 No blank lines allowed *after* function docstring, found 1
1911:1: E302 expected 2 blank lines, found 1
1911: D202 No blank lines allowed *after* function docstring, found 1
1940:1: E302 expected 2 blank lines, found 1
1940: D209 Put multi-line docstring closing quotes on separate line
1940: D202 No blank lines allowed *after* function docstring, found 1
1940: D400 First line should end with '.', not 't'
1940: D205 Blank line missing between one-line summary and description
1958:1: E302 expected 2 blank lines, found 1
1958: D401 First line should be imperative: 'Return', not 'Returns'
1958: D209 Put multi-line docstring closing quotes on separate line
1958: D202 No blank lines allowed *after* function docstring, found 1
1958: D400 First line should end with '.', not 'e'
1958: D205 Blank line missing between one-line summary and description
1992:1: E302 expected 2 blank lines, found 1
1992: D290 White spaces around docstring should be trimmed.
1992: D400 First line should end with '.', not 't'
1992: D205 Blank line missing between one-line summary and description
2005:1: E302 expected 2 blank lines, found 1
2005: D103 Docstring missing
2019:1: E302 expected 2 blank lines, found 1
2019: D202 No blank lines allowed *after* function docstring, found 1
2037:1: E302 expected 2 blank lines, found 1
2037: D202 No blank lines allowed *after* function docstring, found 1
2066:1: E302 expected 2 blank lines, found 1
2066: D400 First line should end with '.', not 'e'
2088:1: E302 expected 2 blank lines, found 1
2088: D205 Blank line missing between one-line summary and description
2106:10: E261 at least two spaces before inline comment
2106:11: E262 inline comment should start with '# '
2125:1: E302 expected 2 blank lines, found 1
2125: D202 No blank lines allowed *after* function docstring, found 1
2125: D400 First line should end with '.', not 't'
2138:1: E302 expected 2 blank lines, found 1
2138: D401 First line should be imperative: 'Return', not 'Returns'
2138: D400 First line should end with '.', not 'm'
2138: D205 Blank line missing between one-line summary and description
2170:1: E302 expected 2 blank lines, found 1
2170: D401 First line should be imperative: 'Return', not 'Returns'
2170: D209 Put multi-line docstring closing quotes on separate line
2170: D202 No blank lines allowed *after* function docstring, found 1
2170: D400 First line should end with '.', not 'm'
2170: D205 Blank line missing between one-line summary and description
2186:1: E302 expected 2 blank lines, found 1
2186: D401 First line should be imperative: 'Return', not 'Returns'
2186: D209 Put multi-line docstring closing quotes on separate line
2186: D202 No blank lines allowed *after* function docstring, found 1
2186: D400 First line should end with '.', not 'd'
2186: D205 Blank line missing between one-line summary and description
2213:1: E302 expected 2 blank lines, found 1
2230:1: E302 expected 2 blank lines, found 1
2230: D401 First line should be imperative: 'Return', not 'Returns'
2230: D202 No blank lines allowed *after* function docstring, found 1
2244:1: E302 expected 2 blank lines, found 1
2244: D205 Blank line missing between one-line summary and description
2266:1: E302 expected 2 blank lines, found 1
2272:1: E302 expected 2 blank lines, found 1
2272: D400 First line should end with '.', not 'e'
2278:1: E302 expected 2 blank lines, found 1
2278: D202 No blank lines allowed *after* function docstring, found 1
2284:1: E112 expected an indented block
2285:1: E112 expected an indented block
2286:1: E112 expected an indented block
2300:1: E302 expected 2 blank lines, found 1
2300: D209 Put multi-line docstring closing quotes on separate line
2300: D202 No blank lines allowed *after* function docstring, found 1
2300: D400 First line should end with '.', not 't'
2300: D205 Blank line missing between one-line summary and description