def beginpath(self, x=None, y=None): if x != None and y != None: CanvasContext.beginpath(self, x, y) else: CanvasContext.beginpath(self)