Set the origin. Pass a length three tuple of floats

def origin(self, origin):
        """Set the origin. Pass a length three tuple of floats"""
        ox, oy, oz = origin[0], origin[1], origin[2]
        self.SetOrigin(ox, oy, oz)
        self.Modified()