Docs: use pydoc to read docstrings

This ensures that the extra whitespace is removed appropriately.

Change-Id: I0d6a6c1164c86875cd139516e592442f67eaf437
Merge "Docs: use pydoc to read docstrings"