Use "{0}".format(foo) instead of % for string formatting