Fix format strings for old versions of python2