#!/usr/bin/env python3 from db import db d = db() k = d.get_keywords(1) for kw in k: print("%s,%.1f" % (kw["kw"], kw["weight"]))