adding pydoc docstrings