def get_attr(self, username, char_id, attr):
    self.assert_valid('accounts', username, 'characters', char_id)
    return self.get_character(username, char_id)[attr]
def get_attr(self, username, char_id, attr):
    self.assert_valid('accounts', username, 'characters', char_id)
    return self.get_character(username, char_id)[attr]