def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def tag(self, g):
        self.g = g
        self.g.beginPath()
        self.g.fillText("%d, %d"%(self.x, self.y),self.x, self.y)
        self.g.stroke()