def expire(self): log.msg("Player idle: %s" % self.name) self.leave() self.phonebook.pop(self.name) Session.expire(self)