Manually document py3compat module.

Automatic documentation doesn't work well with things that have
alternative definitions inside conditional blocks.
Merge pull request #4776 from takluyver/doc-py3compat

Manually document py3compat module.