Play animation frame by frame then pausing Python
As suggested by @batFINGER, frame_change handler was used as shown below:

def my_handler(scene):
    retVal = myFunc()
    myFunc2(retVal)

if __name__ == "__main__":
    register()
    bpy.app.handlers.frame_change_post.append(my_handler)