use timedelta.total_seconds

instead of custom implementation _timedelda_total_seconds