python-mode very slow, lp:1107037, fixed

merged branch by Tom Willemsen
2013-02-02 Docstrings may also be at the beginning of a file