'Called after self.interval seconds. It closes the lid. Before this method is
called, self.is_valid() is automatically checked, so there is no need to
check this manually.'

def at_repeat(self):

    self.obj.close_lid()
