Converted string formatting to .format()

All string formatting should now use the .format() Python 3-style
syntax.