Countdown sensor

Unfortunately that only handles yaml scripts, not python scripts. You may be interested in this thread in the future.
Cheers