Replace pydoc.pager with a function that uses the platform's native pager on every thread except remote console threads.

Fixes #1