But, I want to set up a timeline of frames and I can't seem to find any documentation about accessing the timeline in script.
You probably have to use Action Manger code (as recorded with ScriptingListener.plugin).
But to make it easy on yourself you might want to abandon the Group and all other non-animation Layers to be able to use »Make Frames From Layers«.