#17325: Improve distutils PyPI documentation.

Patch by Chris Jerdonek.
Always handle non-handled events before destoying root widget in tests.
This gets rid of  Tcl warnings when they are handled later when the root is
already destroyed.