Not using timedelta.total_seconds for old python compability.