Getting docstrings in a slightly smarter fashion