How to move an actor in the view port using python

Hello, there good people.
I have been working with python in the unreal engine for a couple of weeks now.
So I want to move an actor from point A (0,0,0) to point B(0,300,0). Right now I was able to move the actor from point a to point b directly.

343886-did.png

What I want is to move the actor from point A to point B with a smooth transition.

343888-nedd.png

I have tried using a loop, which iteratively changes the y-axis value, which did not work, the code directly teleports the actor from point a to point b.

import unreal as ue
from unreal import EditorLevelLibrary as el
from unreal import VPBlueprintLibrary as vpbl

actors = el.get_all_level_actors()
for actor in actors:
    if actor.get_actor_label() == 'cube_bp':
        for i in range(1, 300, 30):
             actor.set_actor_location(ue.Vector(0,i,0), True, False)

I have also tried to refresh the viewport after every iteration, which also didnt work.

import unreal as ue
from unreal import EditorLevelLibrary as el
from unreal import VPBlueprintLibrary as vpbl
    
actors = el.get_all_level_actors()
for actor in actors:
    if actor.get_actor_label() == 'cube_bp':
        for i in range(1, 300, 30):
            actor.set_actor_location(ue.Vector(0,i,100), False, False)
            vpbl.refresh3d_editor_viewport()

Can you please help, how I can do it, or is it possible to do it with python?
Note: I am new to this forum, so please consider my mistakes.
Thank you.

How to make the actor move into different Location with some delay(too known the different movement of actor) using python.
Note: Not a single direction.