hhmmss = '02:29:14'
[hours, minutes, seconds] = [int(x) for x in hhmmss.split(':')]
x = datetime.timedelta(hours=hours, minutes=minutes, seconds=seconds)
x
x.seconds
Время до десятичного времени в Python