How to use the command "get actual joint positions" using interpereter?

I am using the following script in the interpreter to push the values from my laptop using python. The values are sending as expected. I tried to get the values from the robot in a similar way. But my approach is not working as expected, Any sample code available to understand this?

        interpreter.execute_command("movej([0.5, -1.0, 1.0, -1.5, 0.5, 0], a=1.0, v=0.5)")
        time.sleep(2)

        # Send command to print joint positions
        interpreter.execute_command("textmsg(get_actual_joint_positions())")
        time.sleep(2)
        print ("Yes")

        # Read the printed output from the robot
        reply = interpreter.get_reply()
        print("Raw joint positions:", reply)