Fix "line too long" pylint error and rename variable in format str