def remove(self): for i in self.blocks: pysage.removeObject(i) del self
def lockPosition(self): for i in self.blocks: lockedblocks.append(i) pysage.removeObject(i) pysage.addObject(i, TYPE_BLOCK)