Time Operators

bpy.ops.time.end_frame_set()

Set the end frame

bpy.ops.time.start_frame_set()

Set the start frame

bpy.ops.time.view_all()

Show the entire playable frame range

bpy.ops.time.view_frame()

Reset viewable area to show range around current frame