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 's'
4: I102 copyright year is outdated, expected 2014 but got 2012
37:6: E126 continuation line over-indented for hanging indent
56:6: E126 continuation line over-indented for hanging indent
61:31: E126 continuation line over-indented for hanging indent
68:6: E126 continuation line over-indented for hanging indent
72:6: E126 continuation line over-indented for hanging indent
85: D401 First line should be imperative: 'Return', not 'Returns'
85: D205 Blank line missing between one-line summary and description
140:29: E271 multiple spaces after keyword
216:33: E261 at least two spaces before inline comment
217:15: E271 multiple spaces after keyword
218:49: E203 whitespace before ':'
220:49: E203 whitespace before ':'
220:51: E202 whitespace before ']'
221:14: E261 at least two spaces before inline comment
235:79: E261 at least two spaces before inline comment
242:8: E111 indentation is not a multiple of four
321:84: E502 the backslash is redundant between brackets
321:84: E251 unexpected spaces around keyword / parameter equals
323:88: E502 the backslash is redundant between brackets
323:88: E251 unexpected spaces around keyword / parameter equals
328:1: E302 expected 2 blank lines, found 1
328: D400 First line should end with '.', not 'w'
328: D205 Blank line missing between one-line summary and description
353:1: E302 expected 2 blank lines, found 1
353: D290 White spaces around docstring should be trimmed.
353: D400 First line should end with '.', not 's'
353: D205 Blank line missing between one-line summary and description
382:1: E302 expected 2 blank lines, found 1
382: D290 White spaces around docstring should be trimmed.
382: D400 First line should end with '.', not 's'
382: D205 Blank line missing between one-line summary and description
405:1: E302 expected 2 blank lines, found 1
405: D401 First line should be imperative: 'Check', not 'Checks'
405: D290 White spaces around docstring should be trimmed.
405: D400 First line should end with '.', not 'd'
405: D205 Blank line missing between one-line summary and description
427:1: E302 expected 2 blank lines, found 1
427: D400 First line should end with '.', not 'n'
427: D200 One-line docstring should not occupy 3 lines
436:1: E302 expected 2 blank lines, found 1
436: D200 One-line docstring should not occupy 3 lines
442:10: E222 multiple spaces after operator
444:49: E231 missing whitespace after ','
447:1: E302 expected 2 blank lines, found 1
447: D205 Blank line missing between one-line summary and description
512:17: E127 continuation line over-indented for visual indent
512:18: E201 whitespace after '{'
512:44: E203 whitespace before ':'
513:44: E203 whitespace before ':'
514:44: E203 whitespace before ':'
515:44: E203 whitespace before ':'
516:80: E502 the backslash is redundant between brackets
516:44: E203 whitespace before ':'
517:47: E127 continuation line over-indented for visual indent
517:130: E502 the backslash is redundant between brackets
519:44: E203 whitespace before ':'
520:44: E203 whitespace before ':'
521:44: E203 whitespace before ':'
522:44: E203 whitespace before ':'
523:80: E502 the backslash is redundant between brackets
523:44: E203 whitespace before ':'
525:44: E203 whitespace before ':'
526:44: E203 whitespace before ':'
526:65: E225 missing whitespace around operator
526:84: E225 missing whitespace around operator
527:44: E203 whitespace before ':'
527:64: E261 at least two spaces before inline comment
527:65: E262 inline comment should start with '# '
528:17: E124 closing bracket does not match visual indentation
536:1: E302 expected 2 blank lines, found 1
536: D401 First line should be imperative: 'Check', not 'Checks'
536: D290 White spaces around docstring should be trimmed.
536: D400 First line should end with '.', not 't'
536: D205 Blank line missing between one-line summary and description
558:1: E302 expected 2 blank lines, found 1
558: D400 First line should end with '.', not 'n'
558: D205 Blank line missing between one-line summary and description
575: D400 First line should end with '.', not 'r'
575: D205 Blank line missing between one-line summary and description
598:1: E302 expected 2 blank lines, found 1
598: D400 First line should end with '.', not 't'
598: D205 Blank line missing between one-line summary and description
621:17: E225 missing whitespace around operator
626:1: E302 expected 2 blank lines, found 1
626: D400 First line should end with '.', not 't'
626: D205 Blank line missing between one-line summary and description
647:1: E302 expected 2 blank lines, found 1
647: D400 First line should end with '.', not 'n'
647: D205 Blank line missing between one-line summary and description
659:17: E225 missing whitespace around operator
672:1: E302 expected 2 blank lines, found 1
672: D400 First line should end with '.', not 'n'
672: D205 Blank line missing between one-line summary and description
694:22: E201 whitespace after '{'
694:31: E203 whitespace before ':'
694:17: E222 multiple spaces after operator
695:31: E203 whitespace before ':'
696:31: E203 whitespace before ':'
697:31: E203 whitespace before ':'
698:31: E203 whitespace before ':'
699:31: E203 whitespace before ':'
700:21: E124 closing bracket does not match visual indentation
736:38: E203 whitespace before ':'
737:38: E203 whitespace before ':'
738:1: E128 continuation line under-indented for visual indent
739:1: E128 continuation line under-indented for visual indent
740:38: E203 whitespace before ':'
741:16: E128 continuation line under-indented for visual indent
742:16: E128 continuation line under-indented for visual indent
811:1: E302 expected 2 blank lines, found 1
811: D401 First line should be imperative: 'Return', not 'Returns'
811: D400 First line should end with '.', not 'm'
811: D205 Blank line missing between one-line summary and description
843:1: E302 expected 2 blank lines, found 1
843: D400 First line should end with '.', not 'o'
843: D205 Blank line missing between one-line summary and description
851:1: E302 expected 2 blank lines, found 1
851: D400 First line should end with '.', not 'n'
851: D205 Blank line missing between one-line summary and description
961: D400 First line should end with '.', not 'd'
961: D205 Blank line missing between one-line summary and description
972:35: E127 continuation line over-indented for visual indent
990:1: E302 expected 2 blank lines, found 1
990: D400 First line should end with '.', not 'r'
990: D205 Blank line missing between one-line summary and description
1012:1: E302 expected 2 blank lines, found 1
1012: D401 First line should be imperative: 'Return', not 'Returns'
1012: D400 First line should end with '.', not ')'
1025:134: E502 the backslash is redundant between brackets
1025:36: E225 missing whitespace around operator
1025:55: E225 missing whitespace around operator
1030:1: E302 expected 2 blank lines, found 1
1030: D400 First line should end with '.', not 's'
1030: D205 Blank line missing between one-line summary and description
1048:1: E302 expected 2 blank lines, found 1
1068:1: E302 expected 2 blank lines, found 1
1068: D401 First line should be imperative: 'Return', not 'Returns'
1068: D400 First line should end with '.', not 's'
1068: D205 Blank line missing between one-line summary and description
1090:1: E302 expected 2 blank lines, found 1
1090: D401 First line should be imperative: 'Return', not 'Returns'
1134:16: E126 continuation line over-indented for hanging indent
1139:24: E713 test for membership should be 'not in'
1141:58: E502 the backslash is redundant between brackets
1146:49: E502 the backslash is redundant between brackets
1148:49: E502 the backslash is redundant between brackets
1149:73: E202 whitespace before ')'
1151:1: E302 expected 2 blank lines, found 1
1151: D205 Blank line missing between one-line summary and description
1198:25: E126 continuation line over-indented for hanging indent
1202:25: E126 continuation line over-indented for hanging indent
1269:1: E302 expected 2 blank lines, found 1
1269: D401 First line should be imperative: 'Return', not 'Returns'
1269: D400 First line should end with '.', not 'd'
1269: D205 Blank line missing between one-line summary and description
1290:16: E126 continuation line over-indented for hanging indent
1302:16: E126 continuation line over-indented for hanging indent
1310:1: E302 expected 2 blank lines, found 1
1310: D400 First line should end with '.', not 'n'
1310: D205 Blank line missing between one-line summary and description
1329:22: E231 missing whitespace after ':'
1329:29: E231 missing whitespace after ':'
1329:36: E231 missing whitespace after ':'
1329:43: E231 missing whitespace after ':'
1372:1: E302 expected 2 blank lines, found 1
1372: D401 First line should be imperative: 'Get', not 'Gets'
1372: D205 Blank line missing between one-line summary and description
1401:19: E261 at least two spaces before inline comment
1401:20: E262 inline comment should start with '# '
1420:10: E261 at least two spaces before inline comment
1420:11: E262 inline comment should start with '# '
1446:42: E261 at least two spaces before inline comment
1450:45: E261 at least two spaces before inline comment
1474:1: E302 expected 2 blank lines, found 1
1474: D400 First line should end with '.', not 'g'
1474: D200 One-line docstring should not occupy 3 lines
1482:30: W601 .has_key() is deprecated, use 'in'
1486:70: E502 the backslash is redundant between brackets
1489:1: E302 expected 2 blank lines, found 1
1489: D400 First line should end with '.', not 'n'
1489: D205 Blank line missing between one-line summary and description
1503:21: E222 multiple spaces after operator
1517:1: E302 expected 2 blank lines, found 1
1517: D400 First line should end with '.', not 'k'
1517: D205 Blank line missing between one-line summary and description
1619:67: E225 missing whitespace around operator
1746:1: E302 expected 2 blank lines, found 1
1746: D401 First line should be imperative: 'Send', not 'Sends'
1746: D400 First line should end with '.', not 'D'
1746: D200 One-line docstring should not occupy 3 lines
1804:10: E201 whitespace after '{'
1804:36: E203 whitespace before ':'
1804:51: E222 multiple spaces after operator
1806:36: E203 whitespace before ':'
1806:51: E222 multiple spaces after operator
1807:36: E203 whitespace before ':'
1808:36: E203 whitespace before ':'
1809:36: E203 whitespace before ':'
1810:36: E203 whitespace before ':'
1811:36: E203 whitespace before ':'
1812:36: E203 whitespace before ':'
1813:36: E203 whitespace before ':'
1814:36: E203 whitespace before ':'
1815:36: E203 whitespace before ':'
1815:60: E231 missing whitespace after ','
1816:36: E203 whitespace before ':'
1817:37: E203 whitespace before ':'
1818:36: E203 whitespace before ':'
1819:9: E124 closing bracket does not match visual indentation
1833:1: E302 expected 2 blank lines, found 1
1833: D400 First line should end with '.', not '0'
1833: D205 Blank line missing between one-line summary and description
1853:26: E231 missing whitespace after ','
1892:1: E302 expected 2 blank lines, found 1
1892: D202 No blank lines allowed *after* function docstring, found 1
1892: D400 First line should end with '.', not 'e'
1892: D205 Blank line missing between one-line summary and description
1934:1: E302 expected 2 blank lines, found 1
1934: D401 First line should be imperative: 'Return', not 'Returns'
1934: D400 First line should end with '.', not 'e'
1934: D205 Blank line missing between one-line summary and description
1953:1: E302 expected 2 blank lines, found 1
1953: D400 First line should end with '.', not 'n'
1953: D205 Blank line missing between one-line summary and description
1970:1: E302 expected 2 blank lines, found 1
1970: D400 First line should end with '.', not ','
1970: D205 Blank line missing between one-line summary and description
1991:15: E271 multiple spaces after keyword
1994:1: E302 expected 2 blank lines, found 1
1994: D400 First line should end with '.', not 'n'
1994: D205 Blank line missing between one-line summary and description
2005:1: E302 expected 2 blank lines, found 1
2005: D400 First line should end with '.', not 'e'
2005: D205 Blank line missing between one-line summary and description
2021:1: E302 expected 2 blank lines, found 1
2021: D400 First line should end with '.', not 's'
2021: D205 Blank line missing between one-line summary and description
2033:1: E302 expected 2 blank lines, found 1
2033: D400 First line should end with '.', not 'e'
2033: D205 Blank line missing between one-line summary and description
2076:1: E302 expected 2 blank lines, found 1
2076: D400 First line should end with '.', not 'e'
2076: D200 One-line docstring should not occupy 3 lines
2088:1: E302 expected 2 blank lines, found 1
2088: D400 First line should end with '.', not 'e'
2102:1: E302 expected 2 blank lines, found 1
2137:114: E502 the backslash is redundant between brackets
2141:135: E502 the backslash is redundant between brackets
2144:125: E502 the backslash is redundant between brackets
2150:12: E127 continuation line over-indented for visual indent
2177:5: E303 too many blank lines (2)
2191:1: E302 expected 2 blank lines, found 1
2191:34: E251 unexpected spaces around keyword / parameter equals
2191:36: E251 unexpected spaces around keyword / parameter equals
2191: D202 No blank lines allowed *after* function docstring, found 1
2191: D200 One-line docstring should not occupy 3 lines