import vk_api
login = ‘логин’
password = ‘пароль’
old_password = password
new_password = ‘новый пароль’
vk_session = vk_api.VkApi(login, password)
vk_session.auth()
vk = vk_session.get_api()
vk.account.changePassword(old_password, new_password)
vk.account.changePassword(old_password=old_password, new_password=new_password)