Merge pull request #3798 from clumens/f-strings
Refactor: python: Convert to using f-strings in the python module.