Use '%f' % float instead of '{f}'.format to be python 2.6-compatible.