" ".join(["%s %s" % (k, v) for k, v in store.iteritems()])

then append "\n"