[pydoc] fix document formatting