analyze.py: Simplify formatting using the Format String Syntax

https://docs.python.org/3/library/string.html#formatstrings