The rest of the code in this file also has it wrong (needs to be fixed), but docstrings should be the first statement after a function (or a package, or module, or class). Otherwise stuff like __doc__ and pydoc won't work (and it's also convention). It's kind of our fault, we still need to put up a style guide on our docs for Freeseer.