Doc strings should come under the "def" of the function they relate too. See http://www.python.org/dev/peps/pep-0257/