address a pylint complaint about early string expansion