def get_character(self, username, char_id):
    self.assert_valid('accounts', username, 'characters')
    if self.is_valid('accounts', username, 'characters', char_id):
        return self.db['accounts'][username]['characters'][char_id]
    return None
def get_character(self, username, char_id):
    self.assert_valid('accounts', username, 'characters')
    if self.is_valid('accounts', username, 'characters', char_id):
        return self.db['accounts'][username]['characters'][char_id]
    return None