Change calls to .format to % for backward compatibility with 2.6