How to move robot forward and backward until the execution is stop in python

See this post: