@FlyingDiver, that's what he's asking for: help converting this script to Python (that's what this forum is for)...
This script won't convert directly (at the moment) because the IOM doesn't support setting the attributes on a Schedule object. Creating/Updating Triggers/Schedules/Actions are still spotty in terms of the IOM though this will improve.
I suspect there are other approaches to solving this issue. If you can describe more fully the problem that this script is solving perhaps we can help you figure out a different approach...