I did not account for the None bit since it would not happen as each function has a docstring to be used. I am not sure to what your referring when it comes to the white space, do you mean having the string bump right up to the initial ["""]? If so, that should work fine as well since it looks for the first line in the docstring that is not empty.