bpo-32262: Fix codestyle; use f-strings formatting where necessary. (#4775)

24 files changed