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'
2: I102 copyright year is outdated, expected 2014 but got 2011
27:24: E126 continuation line over-indented for hanging indent
32:42: E126 continuation line over-indented for hanging indent
36:6: E126 continuation line over-indented for hanging indent
46:1: E302 expected 2 blank lines, found 1
46: D203 Expected 1 blank line *before* class docstring, found 0
46: D204 Expected 1 blank line *after* class docstring, found 0
46: D400 First line should end with '.', not 'e'
50: D209 Put multi-line docstring closing quotes on separate line
50: D202 No blank lines allowed *after* method docstring, found 1
50: D205 Blank line missing between one-line summary and description
70: D209 Put multi-line docstring closing quotes on separate line
70: D202 No blank lines allowed *after* function docstring, found 1
70: D400 First line should end with '.', not 'e'
70: D205 Blank line missing between one-line summary and description
79:18: E201 whitespace after '('
79:39: E202 whitespace before ')'
80:18: E201 whitespace after '('
80:35: E202 whitespace before ')'
82:18: E201 whitespace after '('
82:20: E201 whitespace after '('
82:30: E201 whitespace after '('
82:32: E201 whitespace after '('
82:38: E202 whitespace before ')'
82:44: E202 whitespace before ')'
82:50: E202 whitespace before ')'
82:56: E201 whitespace after '('
82:62: E202 whitespace before ')'
82:64: E202 whitespace before ')'
90:5: E122 continuation line missing indentation or outdented
91:113: E502 the backslash is redundant between brackets
92:30: E127 continuation line over-indented for visual indent
148:84: E502 the backslash is redundant between brackets
149:72: E502 the backslash is redundant between brackets
196:82: E502 the backslash is redundant between brackets
197:72: E502 the backslash is redundant between brackets
215:85: E502 the backslash is redundant between brackets
216:72: E502 the backslash is redundant between brackets
273:38: E225 missing whitespace around operator
282:34: E127 continuation line over-indented for visual indent
282:59: E225 missing whitespace around operator
283:59: E225 missing whitespace around operator
333:38: E127 continuation line over-indented for visual indent
346:31: E126 continuation line over-indented for hanging indent
347:60: E228 missing whitespace around modulo operator
372:37: E225 missing whitespace around operator
381:34: E127 continuation line over-indented for visual indent
381:59: E225 missing whitespace around operator
382:59: E225 missing whitespace around operator
433:38: E127 continuation line over-indented for visual indent
446:31: E126 continuation line over-indented for hanging indent
447:60: E228 missing whitespace around modulo operator
459:38: E225 missing whitespace around operator
466:30: E127 continuation line over-indented for visual indent
486:31: E126 continuation line over-indented for hanging indent
487:60: E228 missing whitespace around modulo operator
516:93: E502 the backslash is redundant between brackets
517:93: E502 the backslash is redundant between brackets
518:30: E127 continuation line over-indented for visual indent
518:74: E502 the backslash is redundant between brackets
524: D202 No blank lines allowed *after* method docstring, found 1
524: D400 First line should end with '.', not 'I'
591:86: E502 the backslash is redundant between brackets
592:41: E127 continuation line over-indented for visual indent
593:41: E128 continuation line under-indented for visual indent
594:21: E124 closing bracket does not match visual indentation
597: D202 No blank lines allowed *after* method docstring, found 1
615:32: E127 continuation line over-indented for visual indent
616:32: E127 continuation line over-indented for visual indent
617:32: E127 continuation line over-indented for visual indent
619:81: E502 the backslash is redundant between brackets
620:78: E502 the backslash is redundant between brackets
621:79: E502 the backslash is redundant between brackets
638:19: E122 continuation line missing indentation or outdented
639:19: E122 continuation line missing indentation or outdented
648:19: E122 continuation line missing indentation or outdented
649:19: E122 continuation line missing indentation or outdented
658:19: E122 continuation line missing indentation or outdented
659:19: E122 continuation line missing indentation or outdented
668:19: E122 continuation line missing indentation or outdented
669:19: E122 continuation line missing indentation or outdented
687:9: E303 too many blank lines (2)
713:73: E502 the backslash is redundant between brackets
714:38: E127 continuation line over-indented for visual indent
715:39: E127 continuation line over-indented for visual indent
740:46: E203 whitespace before ':'
741:46: E203 whitespace before ':'
742:43: E203 whitespace before ':'
746:1: W293 blank line contains whitespace
753:25: E122 continuation line missing indentation or outdented
754:119: E502 the backslash is redundant between brackets
755:56: E127 continuation line over-indented for visual indent
764:46: E203 whitespace before ':'
765:46: E203 whitespace before ':'
766:43: E203 whitespace before ':'
770:1: W293 blank line contains whitespace
777:25: E122 continuation line missing indentation or outdented
779:1: W293 blank line contains whitespace
819:73: E502 the backslash is redundant between brackets
820:38: E127 continuation line over-indented for visual indent
821:39: E127 continuation line over-indented for visual indent
849:50: E203 whitespace before ':'
850:50: E203 whitespace before ':'
851:47: E203 whitespace before ':'
855:1: W293 blank line contains whitespace
862:25: E122 continuation line missing indentation or outdented
863:129: E502 the backslash is redundant between brackets
864:56: E127 continuation line over-indented for visual indent
875:50: E203 whitespace before ':'
876:50: E203 whitespace before ':'
877:47: E203 whitespace before ':'
881:1: W293 blank line contains whitespace
887:25: E122 continuation line missing indentation or outdented
889:1: W293 blank line contains whitespace
925:73: E502 the backslash is redundant between brackets
926:38: E127 continuation line over-indented for visual indent
954:50: E203 whitespace before ':'
955:50: E203 whitespace before ':'
956:47: E203 whitespace before ':'
960:1: W293 blank line contains whitespace
967:25: E122 continuation line missing indentation or outdented
968:129: E502 the backslash is redundant between brackets
969:56: E127 continuation line over-indented for visual indent
979:50: E203 whitespace before ':'
980:50: E203 whitespace before ':'
981:47: E203 whitespace before ':'
985:1: W293 blank line contains whitespace
991:25: E122 continuation line missing indentation or outdented
993:1: W293 blank line contains whitespace
1028:73: E502 the backslash is redundant between brackets
1029:38: E127 continuation line over-indented for visual indent
1057:50: E203 whitespace before ':'
1058:50: E203 whitespace before ':'
1059:47: E203 whitespace before ':'
1063:1: W293 blank line contains whitespace
1070:25: E122 continuation line missing indentation or outdented
1071:129: E502 the backslash is redundant between brackets
1072:56: E127 continuation line over-indented for visual indent
1082:50: E203 whitespace before ':'
1083:50: E203 whitespace before ':'
1084:47: E203 whitespace before ':'
1088:1: W293 blank line contains whitespace
1094:25: E122 continuation line missing indentation or outdented
1096:1: W293 blank line contains whitespace
1114: D209 Put multi-line docstring closing quotes on separate line
1114: D202 No blank lines allowed *after* method docstring, found 1
1114: D205 Blank line missing between one-line summary and description
1155:26: E225 missing whitespace around operator
1170: D209 Put multi-line docstring closing quotes on separate line
1170: D202 No blank lines allowed *after* method docstring, found 1
1170: D205 Blank line missing between one-line summary and description
1292:30: E126 continuation line over-indented for hanging indent
1300:22: E127 continuation line over-indented for visual indent
1301:22: E127 continuation line over-indented for visual indent
1303:16: E127 continuation line over-indented for visual indent
1311:52: E201 whitespace after '('
1311:102: E202 whitespace before ')'
1356: D209 Put multi-line docstring closing quotes on separate line
1356: D400 First line should end with '.', not ')'
1356: D205 Blank line missing between one-line summary and description
1370:19: E126 continuation line over-indented for hanging indent
1378: D209 Put multi-line docstring closing quotes on separate line
1378: D400 First line should end with '.', not 'L'
1378: D205 Blank line missing between one-line summary and description
1394:19: E126 continuation line over-indented for hanging indent
1405: D290 White spaces around docstring should be trimmed.
1405: D400 First line should end with '.', not 'x'
1430:15: E128 continuation line under-indented for visual indent
1431:15: E128 continuation line under-indented for visual indent
1434: D209 Put multi-line docstring closing quotes on separate line
1434: D400 First line should end with '.', not 't'
1434: D205 Blank line missing between one-line summary and description
1478: D209 Put multi-line docstring closing quotes on separate line
1478: D400 First line should end with '.', not 'n'
1478: D205 Blank line missing between one-line summary and description
1521:99: E502 the backslash is redundant between brackets
1523:40: E502 the backslash is redundant between brackets
1524:17: E127 continuation line over-indented for visual indent
1524:72: E502 the backslash is redundant between brackets
1526:38: E502 the backslash is redundant between brackets
1527:71: E502 the backslash is redundant between brackets
1529:36: E502 the backslash is redundant between brackets
1530:70: E502 the backslash is redundant between brackets
1541: D202 No blank lines allowed *after* method docstring, found 1
1619: D202 No blank lines allowed *after* method docstring, found 1
1644:100: E502 the backslash is redundant between brackets
1645:42: E127 continuation line over-indented for visual indent
1646:42: E128 continuation line under-indented for visual indent
1649:27: E222 multiple spaces after operator
1650:29: E126 continuation line over-indented for hanging indent
1653:27: E222 multiple spaces after operator
1654:29: E126 continuation line over-indented for hanging indent
1660:12: E225 missing whitespace around operator
1666:9: E112 expected an indented block
1691:46: E225 missing whitespace around operator
1692:19: E128 continuation line under-indented for visual indent
1692:26: E231 missing whitespace after ':'
1693:19: E128 continuation line under-indented for visual indent
1693:53: E202 whitespace before '}'
1693:32: E231 missing whitespace after ':'
1693:37: E228 missing whitespace around modulo operator
1767:181: E502 the backslash is redundant between brackets
1768:37: E127 continuation line over-indented for visual indent
1772:156: E502 the backslash is redundant between brackets
1774:65: E127 continuation line over-indented for visual indent
1774:186: E502 the backslash is redundant between brackets
1785:105: E502 the backslash is redundant between brackets
1800: D400 First line should end with '.', not 'e'
1800: D205 Blank line missing between one-line summary and description
1818:76: E225 missing whitespace around operator
1820:82: E225 missing whitespace around operator
1822:75: E225 missing whitespace around operator
1852:12: E225 missing whitespace around operator
1859:19: E231 missing whitespace after ':'
1864: D400 First line should end with '.', not 't'
1864: D205 Blank line missing between one-line summary and description
1892:11: E222 multiple spaces after operator
1898:50: E251 unexpected spaces around keyword / parameter equals
1898:52: E251 unexpected spaces around keyword / parameter equals
1934:29: E222 multiple spaces after operator
1958:64: E502 the backslash is redundant between brackets
1972: D205 Blank line missing between one-line summary and description
1989:3: E111 indentation is not a multiple of four
1990:3: E111 indentation is not a multiple of four
1994:50: E251 unexpected spaces around keyword / parameter equals
1994:52: E251 unexpected spaces around keyword / parameter equals
2000:29: E222 multiple spaces after operator
2027: D400 First line should end with '.', not 's'
2027: D205 Blank line missing between one-line summary and description
2043: D400 First line should end with '.', not 's'
2043: D205 Blank line missing between one-line summary and description
2067: D205 Blank line missing between one-line summary and description
2117: D400 First line should end with '.', not 's'
2132: D400 First line should end with '.', not 's'
2152:5: E303 too many blank lines (2)
2152: D290 White spaces around docstring should be trimmed.
2152: D400 First line should end with '.', not 'u'
2152: D205 Blank line missing between one-line summary and description
2163:54: E225 missing whitespace around operator
2167: D401 First line should be imperative: 'return', not 'returns'
2167: D290 White spaces around docstring should be trimmed.
2167: D400 First line should end with '.', not 's'
2183: D401 First line should be imperative: 'return', not 'returns'
2183: D290 White spaces around docstring should be trimmed.
2183: D400 First line should end with '.', not 'e'
2183: D205 Blank line missing between one-line summary and description
2192: D401 First line should be imperative: 'print', not 'prints'
2192: D400 First line should end with '.', not 'm'
2200: D209 Put multi-line docstring closing quotes on separate line
2200: D400 First line should end with '.', not 't'
2200: D205 Blank line missing between one-line summary and description
2218: D202 No blank lines allowed *after* method docstring, found 1
2299: D202 No blank lines allowed *after* method docstring, found 1
2322:29: E127 continuation line over-indented for visual indent
2323:29: E127 continuation line over-indented for visual indent
2335:112: E231 missing whitespace after ','
2335:130: E231 missing whitespace after ','
2338:1: W293 blank line contains whitespace
2347:29: E225 missing whitespace around operator
2391:9: E124 closing bracket does not match visual indentation
2395: D202 No blank lines allowed *after* method docstring, found 1
2417:112: E231 missing whitespace after ','
2417:130: E231 missing whitespace after ','
2429:29: E225 missing whitespace around operator
2473: D202 No blank lines allowed *after* method docstring, found 1
2544:5: E303 too many blank lines (2)
2544: D202 No blank lines allowed *after* method docstring, found 1
2576:24: E127 continuation line over-indented for visual indent
2580:24: E127 continuation line over-indented for visual indent
2584:26: E126 continuation line over-indented for hanging indent
2612:24: E127 continuation line over-indented for visual indent
2646:24: E127 continuation line over-indented for visual indent
2652:34: E126 continuation line over-indented for hanging indent
2744: D202 No blank lines allowed *after* method docstring, found 1
2821: D202 No blank lines allowed *after* method docstring, found 1
2910:9: E124 closing bracket does not match visual indentation
2914: D202 No blank lines allowed *after* method docstring, found 1
2990:9: E124 closing bracket does not match visual indentation
2994: D202 No blank lines allowed *after* method docstring, found 1
3031:46: E126 continuation line over-indented for hanging indent
3075:17: E122 continuation line missing indentation or outdented
3076:17: E122 continuation line missing indentation or outdented
3076:36: E225 missing whitespace around operator
3077:17: E122 continuation line missing indentation or outdented
3095: D202 No blank lines allowed *after* method docstring, found 1
3113:51: W601 .has_key() is deprecated, use 'in'
3115:31: W601 .has_key() is deprecated, use 'in'
3130:33: W601 .has_key() is deprecated, use 'in'
3137:35: W601 .has_key() is deprecated, use 'in'
3144:35: W601 .has_key() is deprecated, use 'in'
3267:84: E225 missing whitespace around operator
3269:96: E502 the backslash is redundant between brackets
3270:48: E127 continuation line over-indented for visual indent
3270:116: E502 the backslash is redundant between brackets
3272:146: E502 the backslash is redundant between brackets
3304: D202 No blank lines allowed *after* method docstring, found 1
3358: D202 No blank lines allowed *after* method docstring, found 1
3374:26: E127 continuation line over-indented for visual indent
3375:26: E127 continuation line over-indented for visual indent
3419: D202 No blank lines allowed *after* method docstring, found 1
3469: D202 No blank lines allowed *after* method docstring, found 1
3509: D202 No blank lines allowed *after* method docstring, found 1
3532:34: E126 continuation line over-indented for hanging indent
3608: D202 No blank lines allowed *after* method docstring, found 1
3624:9: F841 local variable '_' is assigned to but never used
3668: D202 No blank lines allowed *after* method docstring, found 1
3745:9: E124 closing bracket does not match visual indentation
3749: D202 No blank lines allowed *after* method docstring, found 1
3813:9: E124 closing bracket does not match visual indentation
3817: D202 No blank lines allowed *after* method docstring, found 1
3888:17: E122 continuation line missing indentation or outdented
3889:17: E122 continuation line missing indentation or outdented
3890:17: E122 continuation line missing indentation or outdented
3890:31: E231 missing whitespace after ','
3901: D202 No blank lines allowed *after* method docstring, found 1
3915:51: W601 .has_key() is deprecated, use 'in'
3917:31: W601 .has_key() is deprecated, use 'in'
3932:33: W601 .has_key() is deprecated, use 'in'
3939:35: W601 .has_key() is deprecated, use 'in'
3946:35: W601 .has_key() is deprecated, use 'in'
4064:84: E225 missing whitespace around operator
4066:96: E502 the backslash is redundant between brackets
4067:48: E127 continuation line over-indented for visual indent
4067:116: E502 the backslash is redundant between brackets
4069:146: E502 the backslash is redundant between brackets
4097: D102 Docstring missing
4125: D202 No blank lines allowed *after* method docstring, found 1
4135: D202 No blank lines allowed *after* method docstring, found 1
4144:47: E231 missing whitespace after ','
4145:43: E231 missing whitespace after ','
4146:48: E231 missing whitespace after ','
4148:44: E231 missing whitespace after ','
4149:49: E231 missing whitespace after ','
4150:44: E231 missing whitespace after ','
4185:70: E251 unexpected spaces around keyword / parameter equals
4185:72: E251 unexpected spaces around keyword / parameter equals
4185: D202 No blank lines allowed *after* method docstring, found 1
4185: D200 One-line docstring should not occupy 3 lines
4197:40: E203 whitespace before ':'
4198:40: E203 whitespace before ':'
4199:40: E203 whitespace before ':'
4200:40: E203 whitespace before ':'
4201:40: E203 whitespace before ':'
4202:40: E203 whitespace before ':'
4203:40: E203 whitespace before ':'
4204:40: E203 whitespace before ':'
4205:40: E203 whitespace before ':'
4205:91: E231 missing whitespace after ','
4208:27: E203 whitespace before ':'
4209:27: E203 whitespace before ':'
4209:36: E231 missing whitespace after ','
4217:1: E302 expected 2 blank lines, found 1
4217: D209 Put multi-line docstring closing quotes on separate line
4217: D202 No blank lines allowed *after* function docstring, found 1
4217: D400 First line should end with '.', not 't'
4217: D205 Blank line missing between one-line summary and description
4230:1: E302 expected 2 blank lines, found 1
4230: D209 Put multi-line docstring closing quotes on separate line
4230: D202 No blank lines allowed *after* function docstring, found 1
4230: D400 First line should end with '.', not 't'
4230: D205 Blank line missing between one-line summary and description
4248:1: E302 expected 2 blank lines, found 1
4248: D401 First line should be imperative: 'Return', not 'Returns'
4248: D202 No blank lines allowed *after* function docstring, found 1
4322:1: E302 expected 2 blank lines, found 1
4322: D401 First line should be imperative: 'Return', not 'Returns'
4322: D202 No blank lines allowed *after* function docstring, found 1
4349:30: E127 continuation line over-indented for visual indent
4382:31: E127 continuation line over-indented for visual indent
4405:31: E127 continuation line over-indented for visual indent