code: def set_account_username(self, account, old_username, new_username):
          
          luser = self._get_account(old_username)
          rename(luser, database=self._database, uid=new_username)
docs: Account's username was changed.