Refactor: python: Convert to using f-strings in the python module.
With the new minimum requirement of python-3.6, we can now use f-strings
instead of the older substitutions. I'm not sure whether this looks
better or not, but it does shut up pylint.