Improve {} substitution

This implementation allows multiple substutitions while
using .format() would cause an exception if token was
used multiple times.

pep8: --config=/usr2/ebrunson/.config/pep8

Change-Id: Ie23a321a470685ef4ecc8dde282ef3d665b9a0e7