Getting spline coordinates of mask in movie editor

I am struggling with a little task of a project. I want to define an area in a video that is shaped like a rectangle. Then I want to move the rectangle frame per frame to follow a moving object. I managed to do this by using the face mask option in the movie clip editor. The next step is to get the coordinates of the corner points of the rectangle. I couldn’t find any way to get the coordinates of the face mask at a specific frame. That’s my try:

import bpy
sf = bpy.context.scene.frame_current
ef = 201
for i in range(sf, ef):
    bpy.context.scene.frame_set(i)
    a = bpy.data.masks[0].layers[0].splines[0].points[0].co.copy()
    print("Current Frame:",i)
    print("Object", a)

bpy.context.scene.frame_set(sf)

Before I work on all four points, I need a solution for accessing the coordinates of a specific frame. The for-loop gives me the same output for every Frame. I read about the bpy.ops.rigidbody.bake method to refresh the position of the face mask, but I have no idea, how this method works. It would be ideally to get a list, that shows the x and y coordinates of the four corner points for each frame. Unfortunately I have nearly no experience with Python nor with spline properties. I would appreciate every helpful comment.