How to Add Timeline Marker via Python?
I found it after browsing through the api and checking out some other people's code.

import bpy

scene = bpy.data.scenes['Scene']
scene.timeline_markers.new('F_01', frame=1)


see TimelineMarkers for more info