Use PYTHON to create programs

Can I use PYTHON to create a program to output the time period video I want?

There is no sample doing this, unfortunately. If a user on this forum shares a sample like that it would be super.

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/video_integrations.html&tree=tree_4.html