rewrite pydoc