Issue #21768: fix type in test_pydoc, patch by Claudiu Popa.
Issue #21491: SocketServer: Fix a race condition in child processes reaping.
Fix test_pydoc failure introduced by e89c39125892. Patch by Berker Peksag.