Issue #14097: Backport 796d1371605d and subsequent changes.

The 2.7 tutorial introduction now matches the 3.x introduction as rewritten
by Ezio Melotti, with appropriate changes for 2.x.
Delete a few unused names suggested by pyflakes.
More idlelib cleanup inspired by pyflakes.