For a Frame named frame1, use the following syntax to show the y coordinate in a page variable named y_coord
y_coord = frame1.GetYPosition()