update pydoc to match the source code