coordinates of path points

The Speed IPO lets you translate frame numbers into points along a path. But how in a python script could you then determine the 3D coordinates of the points?