def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
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()