bpo-36324:  Apply review comments from Allen Downey (GH-15693) (GH-15694)

(cherry picked from commit e4810b2a6c1d0db1a27ad046831b8fa3b57967a4)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
3 files changed